Skip to content

Commit ac98115

Browse files
committed
Add an option to include frozen documents.
It is off by default to exclude them when frozen. Since postMessage will be delayed until the page is unfrozen this is the safest option to exclude frozen pages by default.
1 parent 5580c1d commit ac98115

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/index.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ spec: page-visibility; urlPrefix: https://www.w3.org/TR/page-visibility/
6666
type: enum; text: VisibilityState; url: VisibilityState
6767
type: attribute; text: visibilityState; for: Document; url: dom-document-visibilitystate
6868

69+
spec: page-lifecycle; urlPrefix: https://wicg.github.io/page-lifecycle/spec.html
70+
type: dfn; text: frozen; url: frozen
71+
6972
spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
7073
type: attribute
7174
urlPrefix: comms.html
@@ -1207,6 +1210,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
12071210
<pre class="idl" id="serviceworker-client-query-options-dictionary">
12081211
dictionary ClientQueryOptions {
12091212
boolean includeUncontrolled = false;
1213+
boolean includeFrozen = false;
12101214
ClientType type = "window";
12111215
};
12121216
</pre>
@@ -1248,6 +1252,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
12481252
1. If |client|'s [=environment/execution ready flag=] is unset or |client|'s [=discarded flag=] is set, [=continue=].
12491253
1. If |client| is not a [=secure context=], [=continue=].
12501254
1. If |options|["{{ClientQueryOptions/includeUncontrolled}}"] is false, and if |client|'s [=active service worker=] is not the associated [=ServiceWorkerGlobalScope/service worker=], [=continue=].
1255+
1. If |options|["{{ClientQueryOptions/includeFrozen}}"] is false, |client| is a window client and |client|'s [=responsible document=] is [=frozen=], [=continue=].
12511256
1. Add |client| to |targetClients|.
12521257
1. Let |matchedWindowData| be a new [=list=].
12531258
1. Let |matchedClients| be a new [=list=].

0 commit comments

Comments
 (0)