Re: [w3c/ServiceWorker] what should Client.url return for a reserved Worker Client? (#1034)

I think we should also do something similar for other attributes on Client.  For example:

* `Client.ancestorOrigins` should return a zero length list
* `Client.frameType` (if its still implemented) should return `none`.
* `Client.focused` should return false

I'm not sure what `Client.visibilityState` should return for reserved clients.  Should it be `unloaded` or `preload`?

Basically only `Client.id` and `Client.type` should return useful data on reserved Client objects.

Also, `Client.focus()` and `Client.navigate()` should probably reject with `InvalidStateError`.  I think only `Client.postMessage()` should function in that it queues messages until execution ready.

-- 
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/1034#issuecomment-280357895

Received on Thursday, 16 February 2017 15:14:56 UTC