Re: [whatwg/fetch] Only specific APIs should skip the fetch event when called within a service worker (#303)

@slightlyoff, I understand.. you were talking about this:

```js
self.addEventListener('push', e => {
  registration.showNotification('Seeing this again?', {icon: 'same-scope/atlocal.png'});
};

self.addEventListener('fetch', e => {
  registration.showNotification('Seeing this again?', {icon: 'same-scope/atlocal.png'});
};
```

Not sure if we considered this point (or missed it) that the APIs that intend to follow the proposed default behavior (i.e. enter SW again) can create a loop in this way. Should each API deal with this by having some internal state in the spec algorithm to avoid a loop?

-- 
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/fetch/issues/303#issuecomment-267498220

Received on Friday, 16 December 2016 02:00:15 UTC