- From: Dave Tapuska <notifications@github.com>
- Date: Fri, 28 Jun 2019 09:09:26 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 28 June 2019 16:09:48 UTC
I think bfcache and frozen clients are kind of different beasts here. Items that are in the bfcache shouldn't appear controlled or uncontrolled to a service worker. So the service worker should be free to update while something is in the bfcache. If the bfcache needs to evict and reload, or send a controllerchanged when it is restored from the bfcache those seem like reasonable approaches. For discarded top level windows, they shouldn't be controlled but appear as an uncontrolled client so it could be focused. For frozen top level windows, and frozen iframes I believe they should still appear to a service worker and probably still block updating the service worker because we expect these things to be temporary (an open tab in these states would block it as well, and it is no different). It presumably is useful to know what the state of the document is in. Perhaps we just add a `lifecycle` attribute to Client and let matchAll return them all. Then that array based on state if it so chooses. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1442#issuecomment-506789562
Received on Friday, 28 June 2019 16:09:48 UTC