Re: [ServiceWorker] Add name param to Clients.openWindow() method (#711)

@jakearchibald I see. Though, it is quite a limitation to be forced to use the SW as a proxy for whatever operation you want to do with those window open by the SW. Communicating with the SW has its cost, more expensive than retrieving the window reference via `window.open()` if you realize the SW could be terminated and the awakening introduces its costs.

Furthermore I'm not really convinced you want the service worker to hold business logic. It makes perfect sense to allow opening a window as it's the common use case for a `push` or even `sync` events but forcing the SW to act as an intermediate for the business rules and its window causes one of two things:

  * Putting code in the service worker itself
  * Or putting it in another context and make the SW and this context to communicate via new `postMessage()` invokations.

What do you think?

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

Received on Thursday, 2 July 2015 13:10:17 UTC