Closed Bug 1488792 Opened 6 years ago Closed 6 years ago

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

Categories

(Core :: DOM: Service Workers, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: ytausky, Assigned: ytausky)

Details

Attachments

(1 file)

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.
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
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: