Closed
Bug 1462467
Opened 7 years ago
Closed 7 years ago
Bring the remoted registration up-to-date when it attaches to the parent-side ServiceWorkerRegistrationInfo
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Core
DOM: Service Workers
Tracking
()
RESOLVED
INVALID
People
(Reporter: bkelly, Assigned: bkelly)
Details
Attachments
(1 file, 1 obsolete file)
Testing shows that we need to handle a couple conditions when a ServiceWorkerRegistration attaches to a parent-side registration info:
1. If the registration just started installing then we need to fire an updatefound event. The parent SWM does try to do this, but the actor for the registration does not exist yet, so it missed it.
2. Update the registration's state if the SW has actually moved to waiting/active by the time the registration's actor attaches.
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Auto-update the state of the registration when it attaches to the parent SWM. Please see the code comment for a more complete description of why this needs to happen and why its safe per the spec.
Attachment #8976706 -
Attachment is obsolete: true
Attachment #8977046 -
Flags: review?(amarchesini)
Updated•7 years ago
|
Priority: -- → P2
Updated•7 years ago
|
Attachment #8977046 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Sorry, I meant to drop the flag on this patch. I intend to fold this together with some other changes. This patch was not really adequate by itself.
Assignee | ||
Comment 4•7 years ago
|
||
The patch here was not adequate by itself and is overcome by other changes. Just going to jetison this bug in favor of the others I have open.
You need to log in
before you can comment on or make changes to this bug.
Description
•