Intent to Ship: Feature Policy: focus-without-user-activation
Contact emails
ekar...@chromium.org, icle...@chromium.org, mus...@chromium.org
Explainer
PR for public explainer
Design doc/Spec
PR against whatwg/html.
Summary
A feature policy to restrict the use of programmatic focus, when not triggered by user activation.
Motivation
Programmatic focus is a potential security problem for users; it can be potentially abused to hijack user input into third-party content. There seems to be little to no justification on use of such features from third party content; let alone cases where the embedded content has not received a user gesture yet. The proposed policy provides a way to control access to focus API without user activation. The immediate use case would be restricting all sandboxed frames. Focus API, in this context refers to focus management API and autofocus.
Risks
Interoperability and Compatibility
Edge: No signals
Firefox: No signals
Safari: No signals
Web / Framework developers: Public support.
Ergonomics
This feature is set either in HTTP headers or in the allow attribute of an <iframe> to control access to focus API. Limiting the focus API should not have a negative effect on performance.
Activation
The expectation is to disable this feature policy in all sandbox frames, by default. To enable the feature, or disable for a non-sandbox frame, the feature can be set in the allow attribute of <iframe> or set in the HTTP response headers for the whole document and nested contents.
Debuggability
The Reporting API can be used in conjunction with this feature to collect data on failures in a document. Additionally, console warnings will be produced when programmatic focus is blocked by policy. No changes to DevTools are required.
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?
This feature is backed by a tentative WPT.
Link to entry on the feature dashboard
Requesting approval to ship?
Yes.
--
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/b0e5a7af-1cdb-4c6b-9bb8-41c6d4c88ce5%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blin...@chromium.org.
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/ae837dc9-0e15-41da-867c-5648b913b1ec%40chromium.org.
Just changed Issue 965495 to type launch bug.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/ae837dc9-0e15-41da-867c-5648b913b1ec%40chromium.org.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/pnUiTrLHHmw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5WyAYX-F%2BU3ernCXtntMvsviB4NapYJjGj_2ifKYWCuQ%40mail.gmail.com.
https://bugs.chromium.org/p/chromium/issues/detail?id=965495 is also private? I cannot subscribe to that eitherConrad
On Tue, May 21, 2019 at 12:31 PM, Mustaq Ahmed <mus...@google.com> wrote:
Just changed Issue 965495 to type launch bug.
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/ae837dc9-0e15-41da-867c-5648b913b1ec%40chromium.org.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/pnUiTrLHHmw/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAB0cuO56Rdaw2fHFoWRGQXDKHmt-_XhV8UBTfZe1LRv2jsN-GQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.z17cisnurbppqq%40cicero2.linkoping.osa.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/ae837dc9-0e15-41da-867c-5648b913b1ec%40chromium.org.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/pnUiTrLHHmw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5WyAYX-F%2BU3ernCXtntMvsviB4NapYJjGj_2ifKYWCuQ%40mail.gmail.com.
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO56Rdaw2fHFoWRGQXDKHmt-_XhV8UBTfZe1LRv2jsN-GQ%40mail.gmail.com.
--/* Opera Software, Linköping, Sweden: CEST (UTC+2) */
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.z17cisnurbppqq%40cicero2.linkoping.osa.
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/82db4bcf-fc5e-439c-ad76-ed8ddfaf9c51%40chromium.org.