Allows developers to ask for permission to use the Device Orientation and Device Motion APIs. Access to these APIs is currently granted by default, and these new functions are part of the long-term plan to require requesting permission before using window.ondevicemotion and window.ondeviceorientation.
This API has been implemented behind an off-by-default flag since M105. The goal of this Intent to Ship email is to provide this API by default without changing the current implementation that only reports the permissions that have already been set. Shipping this API by default would allow us to get better UseCounter numbers to determine how many sites are already calling requestPermission() due to WebKit's requirements. This helps us move towards always requesting sensor access by default and stop granting permissions by default. This was also discussed at TPAC in 2023: https://www.w3.org/2023/09/14-dap-minutes.html#t13
Changing the sensors permission model, making this API actually request access and not granting sensor access permissions by default will be done separately and at a later date.
The current implementation of this API in Chromium does not actually request permission, but merely report what the current permission settings are: "granted" or "denied" based on the corresponding motion sensor permission settings (there is no "ask" state for motion sensors at the moment). There are no risks with shipping this API in its current form: it just reports the permissions that have already been set.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
-
Shipping on desktop | 121 |
DevTrial on desktop | 105 |
Shipping on Android | 121 |
DevTrial on Android | 105 |
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c27d2bdc-4d62-4d2d-9722-62b66ce88173%40intel.com.