Re: [whatwg/fetch] Resource fetches for notifications shown from a service worker should trigger onfetch (#303)

F2F:

* We need to check worker loading in fetch - does it use clients correctly. 
* There's also the font loading API, CSP reporting
* `EventSource` too, but that shouldn't go through the fetch event from a SW, as it creates a loop as it reconnects
* We'd also need to "skip service worker" for `cache.addAll` and `importScripts` (as well as `fetch`)
* This is a lot more complicated than I thought
* Seems much simpler to allow notification to take a response/file for the icon, but this gets tough when it gets to iconsets. Although getting 10 responses doesn't mean we have to read their body into memory
* We could create a new client type for the notification, but how long does this client live? As long as the notification is there
* Decision: special-case notification so it triggers a fetch event in the active worker of this registration, client will be null

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

Received on Friday, 29 July 2016 14:07:39 UTC