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

This specification is superseded by the [Generic Sensors](https://w3c.github.io/sensors/) family of specifications, which include integration with the [Permissions API](https://w3c.github.io/permissions/). I think that this specification should be updated with a similar integration by requiring `"accelerometer"` and `"gyroscope"` permissions for `deviceorientation` and `devicemotion` events and additionally `"magnetometer"` permission for `deviceorientationabsolute` events. This would match the existing [Orientation Sensor](https://w3c.github.io/orientation-sensor/), [Accelerometer](https://w3c.github.io/accelerometer/), [Gyroscope](https://w3c.github.io/gyroscope/) and [Magnetometer](https://w3c.github.io/magnetometer/) specifications which provide access to the same or similar data.

Is there any plan to implement `navigator.permissions.query()` in WebKit?

Blink is currently considering similar changes to start notifying users or prompting when sites request access to device sensors. The plumbing is already implemented to manage these permissions however they are still granted by default.

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

Received on Thursday, 13 December 2018 19:17:19 UTC