Re: [ServiceWorker] What is FetchEvent.clientId for navigation requests (#808)

I'm not sure I agree.  I don't think its the same as SharedWorker.  SharedWorker is directly reference counted and cleaned up by GC.

A client (window) can be closed through user action.  As long as the client is deemed "gone" when the user action is performed, then we're not actually exposing GC behavior.

I guess it could be an issue for a client that is a worker, though, since again those have their lifecycle managed by GC.

> I guess what I'm saying is that if we solve this differently from how SharedWorker addresses this (requires pinging, iirc), we're violating invariants that are deemed important.

Can you describe what you mean by "pinging", if its something like doing postMessage() and see if you get a response, then I'm not sure how thats different from calling clients.get(id) and getting a response.

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

Received on Friday, 22 January 2016 03:49:30 UTC