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

I had thought of this, but for some reason I also thought `showNotification()` was only available from push events.

> Should each API deal with this by having some internal state in the spec algorithm to avoid a loop?

It would be really hard to trace this through async callbacks.  Consider a fetch handler that did a setTimeout() and then a `showNotification()`.

-- 
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-267512197

Received on Friday, 16 December 2016 04:04:15 UTC