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

I think it's a reasonable use case to allow sites that are currently open in standalone mode to re-focus the standalone window if a user follows a link into the site, avoiding the case where it launches again but non-standalone.

That said, I confess that I don't understand the implementation details of popups/unders etc well enough to know what reasonable approach would allow for sites to be able to focus standalone instances when browsed to without accidentally enabling new forms of popunders.

It seems we either need to find the right restricted functionality (e.g. only homescreened sites focus, and only in response to a user touch) or an alternate approach to solve the problem. I'd personally like to find a more general solution that doesn't depend on the standalone window for the site already being open, but think this would still be valuable if that isn't feasible.

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

Received on Monday, 31 August 2015 21:56:34 UTC