RemoteServiceWorkerRegistration::Update() does not implement delayed self-update mechanism
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: bkelly, Assigned: edenchuang)
References
Details
(Whiteboard: SW-MUST)
Attachments
(1 file, 4 obsolete files)
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Perry, I wrote a patch for delay update mechanism in ServiceWorkerRegistrationProxy.
Could you give some feedbacks on it?
Thanks.
Updated•7 years ago
|
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Update patch according to the feedbacks.
Assignee | ||
Comment 8•7 years ago
|
||
To not expose any new public member function in ServiceWorkerRegistrationProxy, declaring DelayedUpdateCallback as a private member class of ServiceWorkerRegistrationProxy, such that we can keep ServiceWorkerRegistrationProxy's encapsulation, and also let DelayedUpdateCallback can access ServiceWorkerRegistrationProxy's private members what needed to perform "update".
Assignee | ||
Comment 9•7 years ago
|
||
mochitest result for the patch
Assignee | ||
Comment 10•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 11•7 years ago
|
||
-
Add a new private member class DelayedUpdateCallback in
ServiceWorkerRegistrationProxy for handling the deley time up. -
Modify the lambda function in ServiceWorkerRegistrationProxy::Update(). Get
the update delay time at first. If the delay time does not equal zero. create
a timer and a timer callback(DelayedUpdateCallback) to perform the delay
update. Otherwise execute update directly.
Assignee | ||
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e9e31edcc25a
Implement delay update mechanism in ServiceWorkerRegistrationProxy. r=asuth
Comment 13•6 years ago
|
||
bugherder |
Description
•