https://w3c.github.io/permissions/
This Intent to Ship covers the launch of the Web Permission API in WebView, an API that has already launched in other browsers and embedders.
WebView has a more limited permission model than other embedders, namely, it doesn’t support separating “checking permission state” from “requesting permissions”, and the Permission API implementation we ship will reflect this. In particular, the API will respond with “denied” for APIs that are not supported by WebView, “granted” for permissions that WebView automatically grants (midi, sensors) and “prompt” for APIs where permission is handled by sending a callback to the WebView-embedding app (camera, microphone, midi-sysex). WebView does offer support for persistent permissions for the Geolocation API, so in apps that use that feature, WebView will respond with “granted” or “prompt” depending on the choices made by the embedding app.
None
Not applicable
The API is already implemented in all major browsers. This Intent to Ship covers the launch in WebView.
Does this intent deprecate or change behaviour of existing APIs, such that it has potentially high risk for Android WebView-based applications?
This launch does not change any existing behaviour in WebView. However, websites should be aware that they will now be able to use the permissions.query API, which was previously not exposed, and for some APIs (microphone, camera, and MIDI SysEx), they will always get a response of “prompt”. This reflects the fact that these permissions are always forwarded to the embedding app.
None
Yes
Yes, where results will be published to wpt.fyi
None
WebPermissionsApi
False
https://issues.chromium.org/issues/348635849
Reuse existing use counter for permissions.query.
Available in all major browsers. This also adds the API to WebView
Already widely adopted.
Already widely adopted.
Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
No.
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
None
https://chromestatus.com/feature/6376494003650560
LGTM1
--
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/e70b074b-addd-438e-b9f1-f0cc839fa00cn%40chromium.org.
Yep - thanks Peter. The review gates are still part of the
process, even for cases such as this.
LGTM3
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/176855a3-2496-4be9-afe8-c6286c7df300%40chromium.org.