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

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

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 May 2019 18:04:37 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-496625898-1559066675-sysbot+gh@w3.org>
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

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