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

Added a missed bit: b8480546e43db192791ea3674c4585f0a91c8c84

@annevk, need your help. Does it make sense to use a microtask for the state change of a registration and its service workers here? My concern was that if it used a normal task, the register() method's promise fulfillment callback which is followed by those steps wouldn't observe the changes. (i.e. registration.installing in the callback would be null.) Or just queuing a task to resolve the promise as @wanderview suggested would make better sense?


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

Received on Wednesday, 27 April 2016 04:58:19 UTC