Re: [slightlyoff/ServiceWorker] Inconsistencies due to when clients are created (#870)

F2F: 

* A reserved client is created for a navigation
* `fetchEvent.clientId` - represents the client that initiated the request
* `fetchEvent.reservedClientId` - represents the client that has been created for potentially-client-creating request, which may not be used in the event of a redirect, content-disposition, network error, or other response rejection
* `fetchEvent.targetClientId` - the id of the client that the new client will replace if it's used
* `clients.matchAll()` will not return reserved clients
* `clients.matchAll({ includeReserved: true })` will return reserved clients
* Reserved clients will have url `about:blank`
* Reserved clients will inherit visual properties from their target client (which may be a cross origin client, or new tab)
* `client.used` will be false for reserved clients

Some of the naming is up for bikeshedding, specifically:

* "reserved", in all the properties it's used
* `targetClientId`
* `client.used`



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

Received on Monday, 11 April 2016 18:28:13 UTC