Ready for Developer Testing: Page-Embedded Permission Control

303 views
Skip to first unread message

Andy Paicu

unread,
Nov 20, 2023, 12:05:04 PM11/20/23
to blin...@chromium.org

Contact emails

andy...@google.compjmcl...@google.comeng...@google.com

Explainer

https://github.com/andypaicu/PEPC/blob/main/explainer.md

Specification

None

Design docs


https://docs.google.com/document/d/1a1gjlJ4VkAWoG8AeGKZDcQXm_c0q-cFTs_5MxmjWVYI/edit?usp=sharing
https://github.com/WICG/PEPC/blob/main/explainer.md

Summary

Provide a new HTML element that interacts with the permission flow. The permission prompt is currently triggered directly from JS without the user agent having any strong signal of the user's intent. Having an in-content element that the user uses to trigger the permission flow allows for improved permission prompt UX for users as well as a recovery path from the "denied" permission state for sites. Explainer: https://github.com/andypaicu/PEPC/blob/main/explainer.md



Blink component

UI>Browser>Permissions>Prompts

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

There is a risk that this feature fails to be adopted by other browsers. This can be mitigated by polyfilling some of the functionality to ensure the feature is not completely broken in non-implementing browsers.



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

Ergonomics

This feature will likely be used in tandem with the Permissions API (https://www.w3.org/TR/permissions/) which is already supported. The Permissions API runs async. No foreseen ergonomics risks.



Activation

A polyfill can help developers use this feature without risking broken functionality on non-supporting browsers.



Security

https://github.com/WICG/PEPC/blob/main/explainer.md#Security



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Goals for experimentation



Ongoing technical constraints

None



Debuggability

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

No

WPT tests started: https://wpt.fyi/results/html/semantics/permission-element



DevTrial instructions

https://github.com/WICG/PEPC/blob/main/HOWTO.md

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

True

Estimated milestones

DevTrial on desktop121


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5125006551416832

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/TGsrhP4ref0/m/bHFj3id9AgAJ?utm_medium=email&utm_source=footer

This intent message was generated by Chrome Platform Status.

Reilly Grant

unread,
Nov 20, 2023, 4:13:31 PM11/20/23
to Andy Paicu, blin...@chromium.org
On Mon, Nov 20, 2023 at 9:05 AM Andy Paicu <andy...@chromium.org> wrote:
This document is Google internal. If you want to include a design doc please create an external version, however any of the information relevant to this discussion should be in the explainer.

--
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/CALTCLq62Sud6QPcs4McuUswJv2GRiE-X97tQCwxzvA9rfwd55w%40mail.gmail.com.

Andy Paicu

unread,
Dec 1, 2023, 5:34:02 PM12/1/23
to blink-dev, Reilly Grant, blin...@chromium.org, Andy Paicu
Thank you Reilly, that was a mistake on my part. All the relevant details are in the explainer anyways and the design doc is only focused on implementation.

I've removed it from the ChromeStatus entry to ensure it doesn't get sent out in future communications.

On Monday, November 20, 2023 at 10:13:31 PM UTC+1 Reilly Grant wrote:
On Mon, Nov 20, 2023 at 9:05 AM Andy Paicu <andy...@chromium.org> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages