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

RESOLVED FIXED in Firefox 63

Status

()

P3
normal
RESOLVED FIXED
4 months ago
3 months ago

People

(Reporter: ytausky, Assigned: ytausky)

Tracking

Trunk
mozilla63
Points:
---

Firefox Tracking Flags

(firefox63 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 months ago
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)

Updated

4 months ago
Assignee: nobody → ytausky
Status: NEW → ASSIGNED
Priority: -- → P3
(Assignee)

Comment 1

4 months ago
Created attachment 9000536 [details]
Bug 1483505: Test ServiceWorkerContainer.register() with a data: URL

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.
(Assignee)

Updated

4 months ago
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+

Comment 3

4 months ago
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.

Comment 6

4 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/0e8f94baa607
Status: ASSIGNED → RESOLVED
Last Resolved: 4 months ago
status-firefox63: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Upstream PR merged
You need to log in before you can comment on or make changes to this bug.