-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass parser metadata to Fetch #1048
Conversation
LGTM, but prefer a LGTM2 from @domenic. |
Is it correct that classic workers should have the empty string as their parser metadata, instead of "not-parser-inserted"? |
In order for CSP to correctly implement the 'unsafe-dynamic' source expression, HTML needs to teach Fetch about the parser-insertedness that ought to be associated with script requests. See w3c/webappsec-csp#70 for context. The Fetch side of this patch is whatwg/fetch#285.
Thanks! a18d716 should take care of that oversight. |
@@ -86819,7 +86835,9 @@ interface <dfn>NavigatorOnLine</dfn> { | |||
data-x="concept-request-referrer">referrer</span> is <var>referrer</var>, <span | |||
data-x="concept-request-mode">mode</span> is "<code data-x="">same-origin</code>", <span | |||
data-x="concept-request-credentials-mode">credentials mode</span> is "<code | |||
data-x="">same-origin</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li> | |||
data-x="">same-origin</code>", <span data-x="concept-request-parser-metadata">parser | |||
metadata</span> is "<code title>not parser-inserted</code>", and whose <span>use-URL-credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title -> data-x="" (I got a parse error here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Sorry... I should have built before uploading, but it seemed so simple! :)
\o/ |
Thanks. :) |
Thanks to @annevk in whatwg/html#1048
Thanks to @annevk in whatwg/html#1048
In order for CSP to correctly implement the 'unsafe-dynamic' source
expression, HTML needs to teach Fetch about the parser-insertedness
that ought to be associated with script requests.
See w3c/webappsec-csp#70 for context.
The Fetch side of this patch is whatwg/fetch#285.