[wpt-sync] Sync PR 14048 - service worker: Let register('data://blah') throw a TypeError

RESOLVED FIXED in Firefox 65

Status

()

enhancement
P4
normal
RESOLVED FIXED
8 months ago
8 months ago

People

(Reporter: wptsync, Unassigned)

Tracking

unspecified
mozilla65
Points:
---

Firefox Tracking Flags

(firefox65 fixed)

Details

(Whiteboard: [wptsync downstream], )

Sync web-platform-tests PR 14048 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/14048
Details from upstream follow.

Amos Lim <eui-sang.lim@samsung.com> wrote:
>  service worker: Let register('data://blah') throw a TypeError
>  
>  register('data://blah') should throw a TypeError instead of SecurityError.
>  If scopeURL’s scheme is not one of "http" and "https", reject promise
>  with a TypeError and abort these steps.[1]
>  
>  [1]: https://w3c.github.io/ServiceWorker/#start-register-algorithm
>  
>  Bug: 877138
>  Change-Id: Ic1e8cae52ec9393152044aa37da389eb499165bb
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1189688
>  WPT-Export-Revision: 1364d022092a7df03e9f2b732493fca551d0ec6a
Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core
Ran 2 tests and 15 subtests
OK     : 2
PASS   : 14
FAIL   : 1

Existing tests that now have a worse result (e.g. they used to PASS and now FAIL):
/service-workers/service-worker/registration-scope.https.html
    Scope URL is same-origin filesystem: URL: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6d88d9f73af
[wpt PR 14048] - service worker: Let register('data://blah') throw a TypeError, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/30d8f48aab99
[wpt PR 14048] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fb1d44b1895
[wpt PR 14048] - service worker: Let register('data://blah') throw a TypeError, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/c409ea7851c6
[wpt PR 14048] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/9fb1d44b1895
https://hg.mozilla.org/mozilla-central/rev/c409ea7851c6
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.