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

It would be nice we could provide an API to snapshot the current window as a full `Client` snapshot object.

What about something like:

```
let selfClient = new Client(window);

let frame = document.createElement(iframe);
document.body.appendChild(frame);

let FrameClient = new Client(frame.contentWindow);
```

Seems if you have synchronous access to a window global we could simply mint the full Client object immediately.

-- 
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-290624745

Received on Friday, 31 March 2017 06:03:02 UTC