Device Orientation: deviceorientation requires more permissions policy tokens than specified
https://bugs.webkit.org/show_bug.cgi?id=271891
Summary Device Orientation: deviceorientation requires more permissions policy tokens...
Raphael Kubo da Costa (:rakuco)
Reported 2024-03-29 09:00:00 PDT
Bug 221399 covered Permissions Policy support for the Device Orientation API. An effort was made to match Blink's implementation, which was the only existing one at the time. Blink and the spec (https://w3c.github.io/deviceorientation/#permissions-policy-integration) require the following Permissions Policy feature names: - devicemotion requires "accelerometer" and "gyroscope" - deviceorientation requires "accelerometer" and "gyroscope", and optionally "magnetometer" if one wants to allow a fallback to absolute orientation if the implementation cannot provide relative orientation - deviceorientationabsolute requires "accelerometer", "gyroscope" and "magnetometer". The WebKit implementation always requires "accelerometer", "gyroscope" _and_ "magnetometer" for deviceorientation events, possibly as a consequence of the non-standard attributes that DeviceOrientationEvent.idl has on iOS: https://github.com/WebKit/WebKit/blob/5da0d35084007b85445975376a44c9fecb64e9ed/Source/WebCore/dom/DeviceOrientationEvent.idl#L38 I see some bugs that cover making the IDL more compliant with the standard (bug 271099, bug 271098) so hopefully this part can also be aligned with the spec.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-03-31 22:37:41 PDT
Note You need to log in before you can comment on or make changes to this bug.