W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2017

Re: [sensors] Add 'user triggered activation' as mitigation strategy

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 22 May 2017 16:01:36 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-303143857-1495468894-sysbot+gh@w3.org>
> @tobie While we are waiting for relevant people to chime in, could you explain how this change might cause IOP issue, with one example, if you have something in mind.

The following code will only work in browsers that don't implement this:

let g = new Gyroscope();

while this (or something like it—I'm not too sure about the specifics) will work in all browsers.

let g = new Gyroscope();
document.onclick = _ => g.start(); 

Hence Web devs will need to implement the latter if they want their code to be interoperable, and thus we might as well make that mitigation strategy mandatory (but then we need to make sure we're OK with that).

GitHub Notification of comment by tobie
Please view or discuss this issue at https://github.com/w3c/sensors/pull/207#issuecomment-303143857 using your GitHub account
Received on Monday, 22 May 2017 16:01:46 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:54 UTC