Re: [w3c/ServiceWorker] Expose environment ids? (#643)

> No need to pass in the global then. You could just use the constructor from the correct global. 

I thought it might be nice to be able to specify a same-origin iframe global, etc.  But sure.  We could also have a snapshot method or something that returns a Client.

> Although, shouldn't it be asynchronous? Or is synchronous for the current global okay?

I think synchronous from the current global should be ok.  AFAIK all the values on client are available synchronously in other places.  For example, `document.visibilityState` and `document.hasFocus()`.

-- 
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/643#issuecomment-290627355

Received on Friday, 31 March 2017 06:21:27 UTC