Skip to content

Commit d88e979

Browse files
committed
Define client.reserved
This patch adds client.reserved attribute to Client class. client.reserved reflects the state of its associtated environment's execution ready flag. When an environment is initially created (not fully ready with the environment settings object/global object/fetched main resource), this boolean attribute returns true. When the environment's execution ready flag is set (the environment settings object is created and the main resource is fetched), client.reserved returns false.
1 parent b8e715a commit d88e979

File tree

4 files changed

+148
-102
lines changed

4 files changed

+148
-102
lines changed

docs/index.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
10561056
readonly attribute USVString url;
10571057
readonly attribute FrameType frameType;
10581058
readonly attribute DOMString id;
1059+
readonly attribute boolean reserved;
10591060
void postMessage(any message, optional sequence<object> transfer = []);
10601061
};
10611062

@@ -1075,7 +1076,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
10751076
};
10761077
</pre>
10771078

1078-
<p>A <code><dfn interface id="client-interface">Client</dfn></code> object has an associated <dfn id="dfn-service-worker-client-client" for=Client>service worker client</dfn> (a <a href="#dfn-service-worker-client">service worker client</a>).</p>
1079+
<p>A <code><dfn interface id="client-interface">Client</dfn></code> object has an associated <dfn id="dfn-service-worker-client-client" for="Client">service worker client</dfn> (a <a href="#dfn-service-worker-client">service worker client</a>).</p>
10791080

10801081
<p>A <code><dfn interface id="window-client-interface">WindowClient</dfn></code> object has an associated <dfn id="dfn-service-worker-client-visibilitystate">visibility state</dfn>, which is one of {{Document/visibilityState}} attribute value.</p>
10811082

@@ -1116,6 +1117,12 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
11161117
<p>The <dfn attribute for="Client" id="client-id-attribute"><code>id</code></dfn> attribute <em class="rfc2119" title="MUST">must</em> return its associated <a href="#dfn-service-worker-client-client">service worker client</a>'s <a for="environment">id</a>.</p>
11171118
</section>
11181119

1120+
<section>
1121+
<h4 id="client-reserved">{{Client/reserved}}</h4>
1122+
1123+
<p>The <dfn attribute for="Client" id="client-reserved-attribute"><code>reserved</code></dfn> attribute <em class="rfc2119" title="MUST">must</em> return true if the <a>context object</a>'s associated <a for="Client">service worker client</a>'s <a>execution ready flag</a> is unset, and false otherwise.</p>
1124+
</section>
1125+
11191126
<section algorithm="client-postmessage">
11201127
<h4 id="client-postmessage">{{Client/postMessage(message, transfer)}}</h4>
11211128

0 commit comments

Comments
 (0)