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)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: ytausky, Assigned: ytausky)
Details
Attachments
(1 file)
This task is split off from here: https://bugzilla.mozilla.org/show_bug.cgi?id=1472303#c12
Assignee | ||
Comment 1•6 years ago
|
||
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
Assignee | ||
Comment 2•6 years ago
|
||
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
Can't merge web-platform-tests PR due to failing upstream checks:
Github PR https://github.com/web-platform-tests/wpt/pull/13452
* ci/circleci: No Config Found (https://circleci.com/gh/web-platform-tests/wpt/4?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link)
Comment 6•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years 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.
Description
•