Closed Bug 1262677 Opened 8 years ago Closed 8 years ago

ServiceWorkers throw ambigous SecurityError message if MIME type is not correct

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1233798

People

(Reporter: mds, Unassigned)

Details

If the the HTTP Response to a navigator.serviceWorker.register(...) doesn't have the right MIME type, the error thrown (SecurityError) has a generic message.

Release/Beta/Aurora/Nightly still report a generic "The operation is insecure".

Chromium reports instead "The script has an unsupported MIME type ('text/html')."
Sorry, this has been a long standing issue.  I've raised the priority of the existing bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.