This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://crbug.com/433049 changes Chrome's behavior to reject scripts whose MIME type is `image/*`. If this doesn't Break The Internet, we should consider changing the spec to match (and deciding on other types which might be blockable in the same way (audio/video/etc).
This should happen in HTML, no?
(In reply to Anne from comment #1) > This should happen in HTML, no? The spec that Chrome now violates is HTML, yes.
Maybe? Changing components, CCing hixie.
Please change the Target Milestone on this bug to Unsorted once we have information on how compatible this is. Thanks!
What we need to do here: * Share fetching logic for <script>, importScripts(), new Worker, new SharedWorker() * Ban image/* responses (act as network error) Probably best as two distinct changes.
And then convince <svg:script> to use the same "script fetch" hook.
Mike, it sounds like https://code.google.com/p/chromium/issues/detail?id=433049 did end up landing, right? Can you confirm that it's the same blocking for <script>, importScripts, new Worker, and new SharedWorker? Or is it just <script>? I'm happy to take this, although maybe if it ends up being blocked in all those places it'll be better over in Fetch...
Poking at this in https://github.com/whatwg/fetch/pull/261.