Bug 1583657 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Hi smmehadi, thanks for looking into it. 

We're following the [spec](https://html.spec.whatwg.org/multipage/webappapis.html#fetching-scripts):

If any of the following conditions are met, throw a "NetworkError" DOMException:

* The result of extracting a MIME type from response's header list is not a JavaScript MIME type

As far as I know Chrome is on the same page with us on blocking scripts with wrong MIME types. They did not ship it yet since they would like to do more analysis. There is a discussion here https://github.com/whatwg/html/issues/3255 .

We've decided to delay blocking worker scripts in release and are limiting this change to Beta/Nightly to find issues like this. 

It will eventually land in release though, so it would be great if your team could look into changing MIME type of the affected worker script.
Hi smmehadi, thanks for looking into this. 

We're following the [spec](https://html.spec.whatwg.org/multipage/webappapis.html#fetching-scripts):

If any of the following conditions are met, throw a "NetworkError" DOMException:

* The result of extracting a MIME type from response's header list is not a JavaScript MIME type

As far as I know Chrome is on the same page with us on blocking scripts with wrong MIME types. They did not ship it yet since they would like to do more analysis. There is a discussion here https://github.com/whatwg/html/issues/3255 .

We've decided to delay blocking worker scripts in release and are limiting this change to Beta/Nightly to find issues like this. 

It will eventually land in release though, so it would be great if your team could look into changing MIME type of the affected worker script.

Back to Bug 1583657 Comment 4