Throw reject with InvalidStateError when calling ServiceWorkerRegistration.update() while service worker is installing

RESOLVED FIXED in Firefox 64

Status

()

defect
P2
normal
RESOLVED FIXED
9 months ago
8 months ago

People

(Reporter: ytausky, Assigned: ytausky)

Tracking

Trunk
mozilla64
Points:
---

Firefox Tracking Flags

(firefox64 fixed)

Details

Attachments

(1 attachment)

Since the fix for bug 1472303 wouldn't solve this case, it needs its own implementation.
Summary: Add WPT test for calling ServiceWorkerRegistration.update() while service worker is installing → Throw reject with InvalidStateError when calling ServiceWorkerRegistration.update() while service worker is installing
The service workers spec mandates that calling ServiceWorkerRegistration.update()
on a registration whose newest worker is in the 'installing' state fail immediately.
This commit implements this requirement and tests it.

Comment 3

8 months ago
Pushed by shes050117@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9a70e5374176
Reject calls to update() while service worker in 'installing' state r=asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13452 for changes under testing/web-platform/tests

Comment 6

8 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/9a70e5374176
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Upstream PR merged
You need to log in before you can comment on or make changes to this bug.