Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8ed2165

Browse files
committedJun 25, 2019
Add frozen attribute to Client
1 parent ac98115 commit 8ed2165

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎docs/index.bs

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ spec: page-visibility; urlPrefix: https://www.w3.org/TR/page-visibility/
6868

6969
spec: page-lifecycle; urlPrefix: https://wicg.github.io/page-lifecycle/spec.html
7070
type: dfn; text: frozen; url: frozen
71+
type: dfn; text: owning document; url: dedicatedworkerglobalscope-owning-document
7172

7273
spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
7374
type: attribute
@@ -1028,6 +1029,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
10281029
readonly attribute FrameType frameType;
10291030
readonly attribute DOMString id;
10301031
readonly attribute ClientType type;
1032+
readonly attribute boolean frozen;
10311033
void postMessage(any message, sequence<object> transfer);
10321034
void postMessage(any message, optional PostMessageOptions options);
10331035
};
@@ -1053,6 +1055,8 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
10531055

10541056
A {{Client}} object has an associated <dfn id="dfn-service-worker-client-frame-type" for="Client">frame type</dfn>, which is one of "`auxiliary`", "`top-level`", "`nested`", and "`none`". Unless stated otherwise it is "`none`".
10551057

1058+
A {{Client}} object has an associated <dfn id="dfn-service-worker-client-frozen" for="Client">frozen state</dfn>, which if a {{WindowClient}} should reflect [=Client/service worker client=]'s [=responsible document=] [=frozen=] state, otherwise it should reflect [=Client/service worker client=]'s [=environment settings object/global object=]'s [=owning document=] [=frozen=] state.
1059+
10561060
A {{WindowClient}} object has an associated <dfn id="dfn-service-worker-client-browsing-context" for="WindowClient">browsing context</dfn>, which is its [=Client/service worker client=]'s [=environment settings object/global object=]'s [=/browsing context=].
10571061

10581062
A {{WindowClient}} object has an associated <dfn id="dfn-service-worker-client-visibilitystate">visibility state</dfn>, which is one of {{Document/visibilityState}} attribute value.
@@ -1252,7 +1256,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
12521256
1. If |client|'s [=environment/execution ready flag=] is unset or |client|'s [=discarded flag=] is set, [=continue=].
12531257
1. If |client| is not a [=secure context=], [=continue=].
12541258
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=].
1259+
1. If |options|["{{ClientQueryOptions/includeFrozen}}"] is false, |client| is {{Client/frozen}}, [=continue=].
12561260
1. Add |client| to |targetClients|.
12571261
1. Let |matchedWindowData| be a new [=list=].
12581262
1. Let |matchedClients| be a new [=list=].

0 commit comments

Comments
 (0)
Please sign in to comment.