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

> @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:

```js
let g = new Gyroscope();
g.start();
```

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

```js
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