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
As discussed on w3c/ServiceWorker#1442
Unfortunately adoption of page-lifecycle is yet to be formally
supported by other vendors so we need to monkey patch this in the
page lifecycle spec.
Copy file name to clipboardexpand all lines: spec.bs
+71
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,77 @@ Run the [=update document frozenness steps=] given <var ignore>child document</v
244
244
245
245
Each {{HTMLMediaElement}} has a <dfn for="HTMLMediaElement">resume frozen flag</dfn>, which is initially set to false.
246
246
247
+
Modifications to the Service Worker Standard {#serviceworker-mod}
248
+
--------------------------------------------
249
+
250
+
### Service Worker: <a href="https://w3c.github.io/ServiceWorker/#client-interface">Client Interface</a> ### {#serviceworker-client-dfn}
251
+
252
+
<pre class="idl">
253
+
partial interface Client {
254
+
readonly attribute ClientState state;
255
+
};
256
+
257
+
enum ClientState {
258
+
"active",
259
+
"frozen"
260
+
};
261
+
</pre>
262
+
263
+
A {{Client}} object has an associated <dfn id="dfn-service-worker-client-state" for="Client">state</dfn>, which is one of {{ClientState}} attribute value.
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=].
291
+
292
+
293
+
<section>
294
+
<h4 id="client-state">{{Client/state}}</h4>
295
+
296
+
The <dfn attribute for="Client">state</dfn> attribute *must* return the [=context object=]'s [=Client/state=].
297
+
</section>
298
+
299
+
300
+
### Service Worker: <a href="https://w3c.github.io/ServiceWorker/#algorithms">Algorithms</a> ### {#serviceworker-algorithms-dfn}
0 commit comments