You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A {{Client}} object has an associated <dfn id="dfn-service-worker-client-state" for="Client">state</dfn>, which is one of {{ClientState}}attribute value.
271
+
A {{Client}} object has an associated <dfn id="dfn-service-worker-client-lifecycle-state" for="Client">lifecycleState</dfn>, which is one of the {{ClientLifecycleState}}enumeration values.
### Service Worker Algorithms: <a href="https://w3c.github.io/ServiceWorker/#clients-matchall">Match All</a> algorithm ### {#serviceworker-matchall-dfn}
295
+
296
+
Rename variable in Step #4.
297
+
1. Let |matchedClientData| be a new [=list=].
286
298
287
299
Before Step #2.5.1 insert
288
300
289
-
1. Let <var ignore>state</var> be the result of running [=Get Client State=] with <var ignore>client</var>.
290
-
1. If <var ignore>options</var>["{{ClientQueryOptions/state}}"] is not {{ClientStateQuery/"all"}} and does not equal <var ignore>state</var>, then [=continue=].
301
+
1. Let <var ignore>lifecycleState</var> be the result of running [=Get Client Lifecycle State=] with <var ignore>client</var>.
302
+
1. If <var ignore>options</var>["{{ClientQueryOptions/lifecycleState}}"] is not {{ClientLifecycleStateQuery/"all"}} and does not equal <var ignore>lifecycleState</var>, then [=continue=].
291
303
304
+
Append lifecycleState to list in Step #5.3.1
305
+
1. Let |windowData| be «[ "client" → |client|, "ancestorOriginsList" → a new [=list=], "lifecycleState" → |lifecycleState| ]».
292
306
293
-
<section>
294
-
<h4 id="client-state">{{Client/state}}</h4>
307
+
Append lifecycleState to matchedClientData in Step #5.4
The <dfn attribute for="Client">state</dfn> attribute *must* return the [=context object=]'s [=Client/state=].
297
-
</section>
310
+
Pass windowData lifecycleState into Create Window Client algorithm in Step #6.2
311
+
1. Let <var ignore>windowClient</var> be the result of running [=Create Window Client=] algorithm with |windowData|["`client`"], |windowData|["`frameType`"], |windowData|["`visibilityState`"], |windowData|["`focusState`"], |windowData|["`ancestorOriginsList`"], and |windowData|["`lifecycleState`"] as the arguments.
312
+
313
+
Adjust Step #6.3
314
+
1. [=list/For each=] |clientData| in |matchedClientData|:
315
+
1. Let |clientObject| be the result of running [=Create Client=] algorithm with |clientData|["`client`"], and |clientData|["`lifecycleState`"] as the arguments.
316
+
1. [=Append=] |clientObject| to <var ignore>clientObjects</var>.
317
+
318
+
319
+
### Service Worker Algorithms: <a href="https://w3c.github.io/ServiceWorker/#dom-clients-openwindow">Open Window</a> algorithm ### {#serviceworker-openwindow-dfn}
298
320
321
+
Before Step #7.5 insert
322
+
1. Let |lifecycleState| be the result of running [=Get Client Lifecycle State=] with [=context object=]'s associated [=service worker client=].
299
323
300
-
### Service Worker: <a href="https://w3c.github.io/ServiceWorker/#algorithms">Algorithms</a> ### {#serviceworker-algorithms-dfn}
324
+
Adjust Step #7.8.2 to provide lifecycleState
325
+
1. Let |client| be the result of running [=Create Window Client=] with <var ignore>newContext</var>'s {{Window}} object's [=environment settings object=], <var ignore>frameType</var>, <var ignore>visibilityState</var>, <var ignore>focusState</var>, <var ignore>ancestorOriginsList</var>, and |lifecycleState| as the arguments.
301
326
327
+
### Service Worker <a href="https://w3c.github.io/ServiceWorker/#algorithms">Algorithms</a> ### {#serviceworker-algorithms-dfn}
0 commit comments