Re: [whatwg/dom] Nerfing all events on all event targets in a serviceworker after initial script evaluation seems odd (#371)

```js
self.addEventListener('push', e => {
  self.onfetch = e => {
    // A push event will add this fetch listener.
  };
});
```

If we consider the above service worker "has a fetch listener", this would happen:

1. Controlled document makes a fetch.
1. We start up the service worker, because it has a fetch listener.
1. We despatch the 'fetch' event.
1. There is no listener.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/371#issuecomment-374570746

Received on Tuesday, 20 March 2018 11:55:09 UTC