Re: [w3c/ServiceWorker] "Unregister" operation may be interrupted by `ServiceWorker#postMessage` (#1146)

Hmm.. I think I got you. The Try Clear Registration initiated from unregister() is called in the update job in the job queue. So, that'll work. But we have other call sites to Try Clear Registration: event.waitUntil(), event.respondWith(), and Handle Service Worker Client Unload. Is that what you mean?

At least, all of the them check if the registration's uninstalling flag is set before they invoke Try Clear Registration. But that's not enough to avoid them race, right?

> I think we should work with the uninstalling flag as the given signal.

Could you give a little more specific on this. I'd like to think about this option together.

> We should probably talk to @jakearchibald or other web devs about that. Maybe this would be a good one to discuss in person at next meeting.

Surely though I hope we can find a resolution even before that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1146#issuecomment-305396326

Received on Thursday, 1 June 2017 05:57:11 UTC