Primary eng (and PM) emails
icle...@chromium.org, loon...@chromium.org
Summary
The <iframe allow> attribute was introduced with Feature Policy in M60 as a way to give developers fine-grained control over feature exposure in frames. It was originally specified as a DOMTokenList so that multiple features could be specified, like
<iframe allow="usb vr fullscreen">
as well as single features:
<iframe allow="usb">
The spec has been extended to allow a complete policy to be declared for frames, rather than just feature names, and the syntax which was eventually settled on was based heavily on CSP directives, which are separated from each other with semicolons. In this case, the first example would now be expressed as
<iframe allow="usb; vr; fullscreen">
while the second would be unchanged.
This intent is to remove support for the first example, and to require the semicolons as separators.
Motivation
In the updated syntax, a space separator is used to separate a feature name from the origins on which it is allowed. For example, this would be a valid policy directive
<iframe allow="fullscreen https://example.com https://example.org">
This matches the "directive-name source source..." syntax of CSP directives, but is incompatible with the previous DOMTokenList implementation. We have added an exception to the feature policy parser which tries to detect when the old syntax is being used, and falls back to that interpretation, but this is intended to be short-lived, and we'd like to remove that code eventually. Deprecating the old syntax early, before there is a lot of adoption of FP, will be easier than doing it later.
Interoperability and Compatibility Risk
When only a single feature is enabled through the allow attribute, there is no compatibility risk. The old and new syntaxes are identical in that situation.
Alternative implementation suggestion for web developers
Switch to the new syntax, use semicolons between feature names. The deprecation message should include a link to a page which explains how to do this.
Usage information from UseCounter
How much of the web are you going to break? How seriously would the removal break sites?
If possible, please link to usage details on chromestatus.com/metrics (example link)
If you haven’t instrumented this feature yet, say so.
The usage of the allow attribute itself is being tracked with https://www.chromestatus.com/metrics/feature/timeline/popularity/2028, but this does not track the cases where multiple features are being specified, so a new counter is being introduced for that situation in M62. That will give us concrete data about the safety of removing the old syntax.OWP launch tracking bug
Entry on the feature dashboard
This is a small change to a recently introduced part of the FP API which I suspect doesn't need it's own entry on the feature dashboard.
Requesting approval to remove too?
Yes. After a short deprecation period -- two or three releases, which would mean removal in M65 -- we would like to remove the code which detects and interprets the old syntax.
--
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+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK_TSX%2BqSSnsmTdSZW7ryZ7fCa_0cXL%3DHHLDpy%3DwjOF6WXHP0w%40mail.gmail.com.
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/CAK_TSX%2BqSSnsmTdSZW7ryZ7fCa_0cXL%3DHHLDpy%3DwjOF6WXHP0w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_J_8RAq_8cUus_Y-9d0NSJpzZzV3pWDHbt_uKzrBGuYOQ%40mail.gmail.com.
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/CAK_TSX%2BqSSnsmTdSZW7ryZ7fCa_0cXL%3DHHLDpy%3DwjOF6WXHP0w%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_J_8RAq_8cUus_Y-9d0NSJpzZzV3pWDHbt_uKzrBGuYOQ%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 blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYchgPN1yDG9Q9oFonk3s_znEx3dez2vKDMWQwCM0yPq5Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK_TSXLPDEC6O52x8Qvc2qZHsUc_Do84guH6H92_Jxdxhpj9Fw%40mail.gmail.com.
☆PhistucK
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/CAK_TSX%2BqSSnsmTdSZW7ryZ7fCa_0cXL%3DHHLDpy%3DwjOF6WXHP0w%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_J_8RAq_8cUus_Y-9d0NSJpzZzV3pWDHbt_uKzrBGuYOQ%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 blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYchgPN1yDG9Q9oFonk3s_znEx3dez2vKDMWQwCM0yPq5Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK_TSXLPDEC6O52x8Qvc2qZHsUc_Do84guH6H92_Jxdxhpj9Fw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY9aZ%3DPkRa7TMZPyMBYttAiNSejGO-ZviBc07bhm8D7mSw%40mail.gmail.com.