Re: [ServiceWorker] Make FetchEvent.prototype.client nullable (#631)

Having a client for `sendBeacon()` or `ping=""` seems fine to me. Yes, the client may be gone, but that's always possible with clients. You can `clients.getAll(c => c[0].focus())` and have the client shut down before it works (meaning the promise rejects).

For navigations, I agree the client should be null. If you respond with a `Content-Disposition` header, a scriptable client isn't created.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/631#issuecomment-75736805

Received on Tuesday, 24 February 2015 11:00:24 UTC