W3C home > Mailing lists > Public > public-device-apis-log@w3.org > December 2018

Re: [deviceorientation] Add API for requesting permission to receive device motion / orientation events (#57)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Fri, 14 Dec 2018 19:32:00 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-447430709-1544815919-sysbot+gh@w3.org>
I am in favor of adding `requestPermission()` methods to `DeviceOrientationEvent` and `DeviceMotionEvent` (as well as the equivalent Generic Sensors APIs). Acknowledging WebKit's concerns I think it is reasonable for an implementation to choose to completely deny permission for these APIs by default if they wish to. Blink's current plans are to,

1. Implement a permissions API allowing a site to request a particular level of precision and/or frequency.
2. Allow access to the existing level of precision and frequency by default.
3. Notify the user that a site is using the device sensors and allow them to revoke permission.

(2) is necessary to maintain compatibility with existing sites and the existing information leaks are partially mitigated by (3). (1) provides a framework for enabling (a) future use cases that require more data and (b) a move towards reducing the amount of data available without a permission in a gradual fashion in order to allow sites to adapt.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-447430709 using your GitHub account
Received on Friday, 14 December 2018 19:32:02 UTC

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