Postponed Worker scripts with wrong MIME type will be blocked from loading with Worker() or SharedWorker()

Published:

Categories: DOM, JavaScript, Privacy & Security

Releases: Future

Description

Starting with Firefox 75, for security reasons, dedicated and shared worker scripts served with a wrong MIME type will be blocked from loading with Worker() and SharedWorker() respectively. The change has already been made to the Nightly and early Beta channels since Firefox 70, and only one compatibility issue has been reported so far.

The same change has already been made in Firefox 67 to scripts loaded with importScripts(). Make sure your script files are always served with text/javascript or application/javascript.

Update: The novel coronavirus (COVID-19) outbreak is forcing people to spend more time online at home. Due to concerns around making the change with Firefox 75 during such an uncertain time, it has been postponed to a future release. The enforcement remains enabled on the early Beta and Nightly channels. We’ll update this note when the situation has changed.

References