Re: [sensors] Add API for requesting permission (#388)

My proposal is to remove the permissions-related side effects from `Sensor.start()` and add an explicit `Sensor.requestPermission()` method. The reason to separate these is to avoid needing to start a sensor in the main frame just so that the page can request permission to use that sensor from a worker. In terms of avoiding permission prompts that come out-of-context (which was the argument on the Payment Request API) there isn't a meaningful difference between having two methods rather than one.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/sensors/issues/388#issuecomment-496625898 using your GitHub account

Received on Tuesday, 28 May 2019 18:04:38 UTC