- From: Jake Archibald <notifications@github.com>
- Date: Tue, 07 Nov 2017 22:13:17 +0000 (UTC)
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 7 November 2017 22:13:58 UTC
F2F: My comment above is wrong. The double microtask is intentional. The use of the dispatch flag is intentional and catches an edge case with multiple event listeners: ```js addEventListener('fetch', event => { event.waitUntil(Promise.resolve()); }); addEventListener('fetch', event => { // This should work, and it's the dispatch flag that makes it work. event.waitUntil(whatever()); }); ``` Action: Write web platform tests for this. -- 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-342640579
Received on Tuesday, 7 November 2017 22:13:58 UTC