Re: [w3c/ServiceWorker] Add an option to include frozen documents. (#1442)

Some more thoughts:

Are we ever going to expose discarded top level window clients? If the user clicks a notification, it's desirable to focus a discarded tab rather than create a new one. If we might expose this, we should think about the API here, since a client cannot be both frozen and discarded.

@wanderview 

> Also, I'm not sure this adequately captures the issue where frozen clients should not be considered controlled when determining if an active service worker can be discarded.

Is this true? I know that *discarded* clients aren't considered controlled, but I'm less sure about frozen ones. What happens when they become unfrozen? It feels like we need to consider them controlled, or discard them so it doesn't matter.

@dtapuska what happens to tasks queued against a frozen page? As in, if I `postMessage` a frozen tab (using service worker clients or `BroadcastChannel`), are they queued up or discarded?

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

Received on Friday, 28 June 2019 08:20:13 UTC