Re: [ServiceWorker] How are unloaded tabs represented? (#626)

> However, given that tab management isn't really a thing anymore in Android L, maybe it doesn't matter if you open a new window vs focusing an asleep one.

Even with Chrome on Android L, users still don't expect to see duplicate entries in their Recents (they can also disable Chrome Settings > "Merge tabs and apps" to go back to a traditional tab switcher, or use other browsers). So it's still better if webapps can reuse existing tabs, including asleep ones.

> Having asleep tabs show up in clients.getAll() is somewhat desirable

How about adding an `includeAsleep` option to [matchAll](https://github.com/slightlyoff/ServiceWorker/issues/610)?

The expectation would be that if you includeAsleep, you shouldn't postMessage to all the clients (as that is likely to cause excessive RAM usage, as well as CPU churn from reloading them all); I'm not sure if/how that API should enforce that.

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

Received on Monday, 16 February 2015 17:49:18 UTC