Clean up Client API to not expose reserved clients (#1259)
To reflect the decision to not expose reserved clients
(https://github.com/w3c/ServiceWorker/issues/1216) and to spec
.resultingClientId and .targetClientId in Nightly only, this:
* Removes
- Client.reserved and its associated reserved state (V1, Nightly)
- ClientQueryOptions.includeReserved (V1, Nightly)
- FetchEvent.reservedClientId (V1)
- FetchEvent.targetClientId (V1)
- FetchEventInit.reservedClientId (V1)
- FetchEventInit.targetClientId (V1)
* Changes
- FetchEvent.reservedClientId to FetchEvent.resultingClientId (Nightly)
- FetchEventInit.reservedClientId to FetchEventInit.resultingClientId
(Nightly)
- Handle Fetch to set FetchEvent.clientId for a navigation request to
the empty string (V1)
* Corrects
- matchedClients with clientObjects in Clients.matchAll() (V1, Nightly)
Related issue: https://github.com/w3c/ServiceWorker/issues/1245.
This also cleans up sort condition steps in Clients.matchAll() that
fixes https://github.com/w3c/ServiceWorker/issues/1080 (V1, Nightly)
(Changes for the Clients interface's methods will be addressed as
separate PRs.)