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

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