Bug 271891
Summary: | Device Orientation: deviceorientation requires more permissions policy tokens than specified | ||
---|---|---|---|
Product: | WebKit | Reporter: | Raphael Kubo da Costa (:rakuco) <rakuco> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cdumez, karlcow, marcosc, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=271099 https://bugs.webkit.org/show_bug.cgi?id=271098 |
Raphael Kubo da Costa (:rakuco)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/125701992>