Open
Bug 1257977
Opened 8 years ago
Updated 2 years ago
queue tasks to update attributes on ServiceWorker and ServiceWorkerRegistration
Categories
(Core :: DOM: Service Workers, defect, P3)
Core
DOM: Service Workers
Tracking
()
NEW
People
(Reporter: bkelly, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: btpp-fixlater)
Attachments
(3 files, 3 obsolete files)
5.05 KB,
patch
|
Details | Diff | Splinter Review | |
10.78 KB,
patch
|
Details | Diff | Splinter Review | |
2.59 KB,
patch
|
Details | Diff | Splinter Review |
Currently the spec requires us to wait for statechange events to fire before activating directly after installation. We probably need to wait for any statechange events any time .installing, .waiting, or .active are modified. I have an issue for this: https://github.com/slightlyoff/ServiceWorker/issues/848 Currently we handle this by starting activate asynchronously. Since we only fire statechange events on the main thread this ensures the event dispatch runnable has been flushed. Once we implement bug 1113522, however, this will not be adequate. We will need a more explicit async wait step. Filing this to tackle after bug 1256428.
Reporter | ||
Comment 1•8 years ago
|
||
After thinking about this more I think we just need to implement something like this instead: https://github.com/slightlyoff/ServiceWorker/issues/860
Summary: explicitly wait for "statechange" events to fire → queue tasks to update attributes on ServiceWorker and ServiceWorkerRegistration
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Reporter | ||
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Reporter | ||
Comment 6•8 years ago
|
||
Reporter | ||
Comment 7•8 years ago
|
||
These patches are all refactoring towards allowing us to update registrations cleanly when the state of the registration changes. More refactoring to come. I'm trying to keep the patches small, so there will be lots of them.
Reporter | ||
Updated•8 years ago
|
Attachment #8737367 -
Attachment is obsolete: true
Reporter | ||
Updated•8 years ago
|
Attachment #8737368 -
Attachment is obsolete: true
Reporter | ||
Updated•8 years ago
|
Attachment #8737369 -
Attachment is obsolete: true
Reporter | ||
Comment 8•8 years ago
|
||
Unfortunately I won't have time to complete this before moving to another effort. I moved the first 3 patches to bug 1263307 to land separately. The remaining patches are a work-in-progress towards associating DOM ServiceWorkerRegistration objects directly with their backing ServiceWorkerRegistrationInfo objects. Once that is done we could more easily fire update to keep attributes in sync.
Assignee: bkelly → nobody
Status: ASSIGNED → NEW
Reporter | ||
Comment 9•8 years ago
|
||
Note this should also fix this issue if its still a problem in our implementation: https://github.com/slightlyoff/ServiceWorker/issues/851
Reporter | ||
Comment 10•8 years ago
|
||
Also we should include this spec issue when this bug is fixed: https://github.com/slightlyoff/ServiceWorker/issues/848
Updated•8 years ago
|
Whiteboard: btpp-fixlater
Updated•6 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•