-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up Client API to not expose reserved clients #1259
Conversation
To reflect the decision to not expose reserved clients (#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: #1245. This also cleans up sort condition steps in Clients.matchAll() that fixes #1080 (V1, Nightly) (Changes for the Clients interface's methods will be addressed as separate PRs.)
|
LGTM. As you say, the only missing bit is making sure |
LGTM. |
As per the decision in w3c/ServiceWorker#1216. Related spec PR: w3c/ServiceWorker#1259.
Related PR for WPT: web-platform-tests/wpt#9023. |
LGTM too. |
To reflect the decision that we don't expose reserved clients (#1216), this change introduces the client's discarded flag, and uses that flag and the execution ready flag to resolve the promise when the client reaches one of those states instead of capturing and exposing the reserved client. Follow-up to 07e9487 (#1259).
To reflect the decision to not expose reserved clients
(#1216) and to spec
.resultingClientId and .targetClientId in Nightly only, this:
Removes
Changes
(Nightly)
the empty string (V1)
Corrects
Related issue: #1245.
This also cleans up sort condition steps in Clients.matchAll() that
fixes #1080 (V1, Nightly)
(Changes for the Clients interface's methods will be addressed as
separate PRs.)
Preview | Diff