{"action":"created","issue":{"url":"https://api.github.com/repos/WICG/interventions/issues/47","repository_url":"https://api.github.com/repos/WICG/interventions","labels_url":"https://api.github.com/repos/WICG/interventions/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/WICG/interventions/issues/47/comments","events_url":"https://api.github.com/repos/WICG/interventions/issues/47/events","html_url":"https://github.com/WICG/interventions/issues/47","id":211286647,"number":47,"title":"Require user activation for navigator.vibrate","user":{"login":"lubin2010","id":17538850,"avatar_url":"https://avatars0.githubusercontent.com/u/17538850?v=4","gravatar_id":"","url":"https://api.github.com/users/lubin2010","html_url":"https://github.com/lubin2010","followers_url":"https://api.github.com/users/lubin2010/followers","following_url":"https://api.github.com/users/lubin2010/following{/other_user}","gists_url":"https://api.github.com/users/lubin2010/gists{/gist_id}","starred_url":"https://api.github.com/users/lubin2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lubin2010/subscriptions","organizations_url":"https://api.github.com/users/lubin2010/orgs","repos_url":"https://api.github.com/users/lubin2010/repos","events_url":"https://api.github.com/users/lubin2010/events{/privacy}","received_events_url":"https://api.github.com/users/lubin2010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-03-02T04:30:01Z","updated_at":"2018-02-06T17:54:58Z","closed_at":null,"author_association":"NONE","body":"Vibrate is being abused by malicious contents, and some users have complained about it (e.g., [this reddit thread](https://www.reddit.com/r/chrome/comments/3cce4y/android_under_no_imaginable_circumstance_should_a/)). To better protect user, we would like to gate vibrate with user activation (aka. user gesture or user initiated actions, defined [here](https://html.spec.whatwg.org/#triggered-by-user-activation) in the html spec). The metrics from Chrome shows that vibrate was being used by ~0.02% of pages (in Feb 2017, [the metrics link](https://www.chromestatus.com/metrics/feature/timeline/popularity/850)).\r\n\r\nA frame would be able to vibrate user devices if it or any of its embedded frames has ever received a user activation. In implementation terms, when a user clicks on an iframe, we would set a bit up the ancestor chain saying that it had received a user gesture, so then any frame in the ancestor chain would be able to vibrate from then on.\r\n\r\nThis is a follow-up effort of #25 \"Require user gesture for navigator.vibrate in cross-origin iframes\".\r\n\r\ncc/ @ojanvafai @RByers @mikewest @bzbarsky @chrisbro-MSFT @VicenteDiaz"},"comment":{"url":"https://api.github.com/repos/WICG/interventions/issues/comments/363508393","html_url":"https://github.com/WICG/interventions/issues/47#issuecomment-363508393","issue_url":"https://api.github.com/repos/WICG/interventions/issues/47","id":363508393,"user":{"login":"rajagopalx","id":10378178,"avatar_url":"https://avatars1.githubusercontent.com/u/10378178?v=4","gravatar_id":"","url":"https://api.github.com/users/rajagopalx","html_url":"https://github.com/rajagopalx","followers_url":"https://api.github.com/users/rajagopalx/followers","following_url":"https://api.github.com/users/rajagopalx/following{/other_user}","gists_url":"https://api.github.com/users/rajagopalx/gists{/gist_id}","starred_url":"https://api.github.com/users/rajagopalx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajagopalx/subscriptions","organizations_url":"https://api.github.com/users/rajagopalx/orgs","repos_url":"https://api.github.com/users/rajagopalx/repos","events_url":"https://api.github.com/users/rajagopalx/events{/privacy}","received_events_url":"https://api.github.com/users/rajagopalx/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T17:54:58Z","updated_at":"2018-02-06T17:54:58Z","author_association":"NONE","body":"@kylemacfarlane navigator.vibrate is working in PWA.  My Chrome version of Android: 64.0.3282.137"}}
{"actor":{"display_login":"rajagopalx"}}