Re: [w3c/ServiceWorker] Should we expose reserved clients? (#1216)

> When would `get(reservedId)` resolve?  When the Client becomes execution ready?

As soon as it can be messaged/navigated. I'm sure it's more nuanced than that though.

> If the navigation fails or redirects cross origin the Client for `reservedId` may never become execution ready.  What does `get(reservedId)` do in that case?

Right now, `client.get(doesntExist)` will resolve with undefined, so that was my first thought.

It could reject if it's given a valid reserved client ID that doesn't become a client, but I think that'd be a race condition. If you wait long enough, that ID will no longer be reserved, so it'll resolve undefined.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1216#issuecomment-339695841

Received on Thursday, 26 October 2017 15:04:21 UTC