Add the "speculationrules" destination - #1952
Open
vickiez wants to merge 4 commits into
Open
Conversation
Part of whatwg/html#11426, for requests initiated by the `Speculation-Rules` HTTP header.
The "speculationrules" row was added inside the "" initiator group without growing that group's rowspan, leaving the table a cell short.
w3c/webappsec-csp#808 defines the speculation-rules-src fetch directive for the "speculationrules" destination, so it is no longer exempt from CSP's fetch directives.
whatwg/html#11697 gives external <script type=speculationrules src> the "speculationrules" destination, routing it through the same fetch algorithm as the Speculation-Rules header.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This destination is used when fetching speculation rule sets, whether via the
Speculation-RulesHTTP response header or an external<script type=speculationrules src>element. It is governed by thespeculation-rules-srcCSP directive.Supersedes #1841, whose commit is included here unchanged and with its
authorship preserved. On top of it, this PR:
""initiatorrowspan, which wasnot grown when the new row was added, leaving the table a cell short
(editorial);
"speculationrules"out of the "no CSP directive" grouping and gives itthe
speculation-rules-srcdirective; and<script type=speculationrules src>elements, not just the header.Note that HTML's "process the
Speculation-Rulesheader" already createsrequests whose destination is
"speculationrules", so this value is referencedtoday without being defined here.
Related pull requests
Speculation-Rulesheader, andcreates requests with this destination.
speculation-rules-srcand maps thisdestination to it.
<script type=speculationrules src>fetch its rule set using this destination.
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff