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)

enhancement

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.
Blocks: 1462460
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)
Priority: -- → P2
Blocks: 1462772
Attachment #8977046 - Flags: review?(amarchesini) → review+
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.
No longer blocks: 1462466
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.
No longer blocks: 1462460, 1462772
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
No longer depends on: 1459209
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: