[w3c/ServiceWorker] 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.)
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1259

-- Commit Summary --

  * Clean up Client API to not expose reserved clients

-- File Changes --

    M docs/index.bs (35)
    M docs/v1/index.bs (49)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1259.patch
https://github.com/w3c/ServiceWorker/pull/1259.diff

-- 
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/pull/1259

Received on Friday, 12 January 2018 06:28:20 UTC