Closed Bug 1232444 Opened 10 years ago Closed 10 years ago

only persist service worker registrations that successfully install

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

Currently we call StoreRegistration() immediately at the start of a registration or update. Instead, we should wait until a service worker is successfully installed. We have no facility to re-run the install event on startup, so if the browser closes before installation finishes we should just forget the registration anyway. The page can start the register again when its next visited. This will also fix some warning spam we currently have.
Depends on: 1231974
Attachment #8698215 - Flags: review?(amarchesini) → review+
Oh yea, we depend on bug 1231974. This burned the tree since that hasn't landed yet. Backed out: https://hg.mozilla.org/integration/mozilla-inbound/rev/55979cd464b0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: