Skip to content
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

Merged
merged 3 commits into from
Apr 15, 2016
Merged

Pass parser metadata to Fetch #1048

merged 3 commits into from
Apr 15, 2016

Conversation

mikewest
Copy link
Member

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.

@mikewest
Copy link
Member Author

This is the HTML-side of the patch you just landed to Fetch, @annevk. Mind taking a look? It basically follows along the same pattern as 5479e07, touching all the same spots.

@domenic, FYI.

mikewest added a commit to w3c/webappsec-csp that referenced this pull request Apr 14, 2016
@annevk
Copy link
Member

annevk commented Apr 14, 2016

LGTM, but prefer a LGTM2 from @domenic.

@domenic
Copy link
Member

domenic commented Apr 14, 2016

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.
@mikewest
Copy link
Member Author

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
Copy link
Member

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)

Copy link
Member Author

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! :)

@annevk annevk merged commit e6500b9 into whatwg:master Apr 15, 2016
@annevk
Copy link
Member

annevk commented Apr 15, 2016

\o/

@mikewest mikewest deleted the parser branch April 15, 2016 08:19
@mikewest
Copy link
Member Author

Thanks. :)

mikewest added a commit to w3c/webappsec-csp that referenced this pull request Apr 15, 2016
ryandel8834 added a commit to ryandel8834/WebAppSec-CSP that referenced this pull request Aug 13, 2022
ryandel8834 added a commit to ryandel8834/WebAppSec-CSP that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants