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

The use-case was a situation where you might otherwise want to do a
redirect, but from the perspective of the SW. In the case of document
creation, there's a step between starting the process of creation (which
generates a new name) and navigating to the actual named location;
`/create` -> `/generatedname`

On Wed, Apr 22, 2015 at 8:22 AM, Jake Archibald <notifications@github.com>
wrote:

> We could have windowClient.navigate(url), which returns a promise. url
> could be optional and default to the current url (eg reload). Promise would
> reject if client no longer exists.
>
> @slightlyoff <https://github.com/slightlyoff> can you give us a better
> idea of the use-case? When would they be calling this?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/slightlyoff/ServiceWorker/issues/681#issuecomment-95234389>
> .
>


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

Received on Friday, 24 April 2015 16:32:18 UTC