Re: [ServiceWorker] Install algorithm step 14 should clear waiting worker before updating state to redundant (#851)

> I think we need to think about how it works for statechange event listeners in worker threads as well. We can assume tasks run in order between the main thread and worker threads.

I'm not sure if I understood your concern here correctly. Update State is using either a main thread's event loop or a worker's event loop exclusively depending on where the target `ServiceWorker` object is stored: `The task must use serviceWorker’s relevant settings object’s responsible event loop and the DOM manipulation task source.` <- This step covers both cases. Am I still misunderstanding your point?

> If you would like I can figure out what I think makes sense and try to make a PR in the next week or two.

Sure. Your contribution and help are always welcome! Thanks.



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

Received on Wednesday, 23 March 2016 01:12:25 UTC