Re: [w3c/ServiceWorker] async waitUntil microtask issue (#1213)

The dispatch flag is unset after all event listeners are invoked, according to https://dom.spec.whatwg.org/#dispatching-events:
1. the dispatch flag is set at step 1 and is unset and step 14.
2. the listener callbacks could be invoked in step 12.4 and step 13.6.
3. in https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke, each callback invocation [1] (step 16.2 of [1]) contains a microtask checkpoint specified in [2].
[1] https://heycam.github.io/webidl/#call-a-user-objects-operation
[2] https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script

-- 
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/1213#issuecomment-338884855

Received on Tuesday, 24 October 2017 06:14:21 UTC