Closed Bug 1483505 Opened 6 years ago Closed 6 years ago

Registering a service worker with a data: URL throws SecurityError instead of TypeError

Categories

(Core :: DOM: Service Workers, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: ytausky, Assigned: ytausky)

References

Details

Attachments

(1 file)

The spec requires a TypeError in this case: https://w3c.github.io/ServiceWorker/#start-register
This is currently not tested, as far as I can tell.
Assignee: nobody → ytausky
Status: NEW → ASSIGNED
Priority: -- → P3
The proper response to a registration attempt with a data: URL is a TypeError,
yet we currently reject with a Security error. See spec.:
https://w3c.github.io/ServiceWorker/#start-register

Currently this test is expected to fail.
Blocks: 1455078
Comment on attachment 9000536 [details]
Bug 1483505: Test ServiceWorkerContainer.register() with a data: URL

Andrew Sutherland [:asuth] has approved the revision.
Attachment #9000536 - Flags: review+
Pushed by bugmail@asutherland.org:
https://hg.mozilla.org/integration/autoland/rev/0e8f94baa607
Test ServiceWorkerContainer.register() with a data: URL r=asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/12624 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
https://hg.mozilla.org/mozilla-central/rev/0e8f94baa607
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: