-
Notifications
You must be signed in to change notification settings - Fork 78
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
Behavior of worker-src 'strict-dynamic'
#609
Comments
For chrome, I could dig up bug 708982. The spec seems to mandate something else. As pointed out above, I think allowing this makes most sense, so I would propose to fix the spec. We should also write a WPT. |
#200 (comment) claims that it does, but even as of the commit mentioned in that issue I don't see how. cc @mikewest And I'm not sure exactly what it's supposed to do. Is there any way of loading a worker which would be blocked by |
There is actually a test for this, and it seems to pass on all vendors. Edit: The test is actually for |
Sorry, I meant "according to the spec", not "according to the test". I opened a PR just to test
Can't you use |
Ah, ok. FWIW the spec currently treats loading of workers identically regardless of whether the effective directive is
Yes in theory, but for whatever reason the engineers at the property in question are not OK with I was going to point out that |
Can you clarify that? When we use a script-src directive for worker requests, we end up in 6.7.1.1. Script directives pre-request check, which handles 'strict-dynamic'. worker-src just uses 6.7.2.4. Does request match source list?. |
Ah jeeze, you're right. I thought that the way it worked was the So you're right, So you have the very strange situation that |
I have a question about the behavior of explicitly
worker-src 'strict-dynamic'
. Workers are obviously not parser-inserted so for script-src and script-src-elem the Script directives pre-request check should allow them in step 1.4. However unlike the script-src(-elem) Pre request check, theworker-src
Pre-request Check doesn't call into the "Script directives pre-request check".Firefox currently only supports
'strict-dynamic'
in script-src(-elem|attr) so this isn't allowed. Chrome seems to allow the execution of every Worker with that policy. Considering that Workers also fallback tochild-src
a similar question applies, but I haven't tested it.Edit: We are currently working on implementing support for
'strict-dynamic'
in the default-src in Firefox: bug 1313937The text was updated successfully, but these errors were encountered: