Re: [ServiceWorker] Navigating clients from the SW context? (#681)

I've taken a first stab at this, @jungkees, can you review?

I'm checking that the document hasn't been discarded (1.6.2), should `focus()` do the same?

I'm rejecting the promise if the client isn't controlled by this SW - else you can navigate parts of the origin "owned" by someone else.

I'm uncomfortable with the "source browsing context" bit, as it's a lie, but I think this is the first API that lets a non-browsing context navigate a browsing context.

I decided against:

> I'll spec windowClient.navigate(url), where url defaults to the current url, so windowClient.navigate() reloads.

…as that clashes with other APIs where the default url is "" (eg `getRegistration`).

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

Received on Tuesday, 19 May 2015 15:38:10 UTC