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

@nikhilm the use-case is avoiding creating duplicate tabs when responding to notification clicks.

1. Push message received indicating the user has a new chat message
1. Notification shown
1. User taps notification
1. SW looks for an existing relevant tab to focus, only calling `openWindow` if it doesn't find one

Evicted tabs aren't real SW clients, as they don't have an environment settings object etc, they're essentially placeholders. But developers should be able to awaken one of these rather than creating a new window to the same url.

I put them into their own type since they're not a real client, and `postMessage` won't work. It should be a property on `WindowClient` rather than its own type, as long we're happy exposing a `postMessage` method that will never work.

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

Received on Tuesday, 19 May 2015 13:41:55 UTC