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

I don't think we can safely call Try Clear Registration from the thread calling unregister().  The state checks in Try Clear Registration is managed on a different thread.  Also, I'm not sure it would be correct if you consider the different ways a register job could also be queued.

We probably just need algorithms to handle the uninstalling flag.  For postMessage() it should probably just eat the message silently as thats what we do when you postMessage a closing window.  For other things we may want to throw an error.

We could also add text saying the UA should not start a new SW thread for a registration with the uninstalling flag set.

-- 
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-305191110

Received on Wednesday, 31 May 2017 13:46:17 UTC