DescriptionDon't drop messages/events send to a service worker that is stopping.
Currently ServiceWorkerVersion drops any messages that are sent while
the service worker is in STOPPING state. In particular messages send
to the service worker using postMessage are never delivered if the
service worker is currently in the STOPPING state.
The same situation will happen if any other subsystem happens to try
to deliver an event to a service worker while the service worker is
shutting down. The event delivery will fail with a
"SERVICE_WORKER_ERROR_START_WORKER_FAILED" error.
This fixes this by restarting the service worker as soon as it has
finished stopping if some event or message is attempted to be delivered
while the service worker is stopping.
BUG=433439
Committed: https://crrev.com/b8f566900faccfe07b4e6a2f13629ec0554ca553
Cr-Commit-Position: refs/heads/master@{#306588}
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : rebase #Patch Set 4 : address nit #
Messages
Total messages: 8 (2 generated)
|