Re: [ServiceWorker] Specify .focus() and .openWindow() behaviour (#602)

So I think we need to be crisper about this. Lets ignore programmatic navigation. We can distinguish it from user-initiated navigation. Lets also put aside the question of what to do when the app isn't already running in some way (as we can't open full-screen regardless for various Chrome impl reasons at the moment).

That leaves us with:

 * Top-level user-initiated navigations
   * Link clicks, url-bar navigation, etc.
   * ...or external actions (system url handlers, e.g., an `ACTION_VIEW` intent in android) which would result in top-level navigations
  * To URLs for which there is a registered Service Worker which matches the path...
  * ...and for which there is an `onfetch` handler

In these cases, allowing `focus()` seems reasonable. @jakearchibald, WDYT?

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

Received on Monday, 31 August 2015 23:00:54 UTC