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
This defines the concept's origin algorithm that returns a relevant
value for both enviroments and environment settings objects.
This also incorporates the changes of the corresponding links to this
definition, and leaves an issue note about the WIP execution ready flag
PR.
<p>A <a href="#dfn-service-worker-client">service worker client</a> has an associated <dfn id="dfn-service-worker-client-frame-type">frame type</dfn>, which is one of <em>auxiliary</em>, <em>top-level</em>, <em>nested</em>, and <em>none</em>. Unless stated otherwise it is <em>none</em>.
289
289
290
+
<p>A <a for="/">service worker client</a> has an algorithm defined as the <dfn for="service worker client">origin</dfn> that returns the <a for="/">service worker client</a>'s <a>creation URL</a>'s <a for="url">origin</a> if the <a for="/">service worker client</a> is a type of <a>environment</a>, and the <a for="/">service worker client</a>'s <a for="environment settings object">origin</a> otherwise.</p>
291
+
290
292
<p>A <dfn id="dfn-window-client">window client</dfn> is a <a href="#dfn-service-worker-client">service worker client</a> whose <a for="environment settings object">global object</a> is a {{Window}} object.</p>
291
293
292
294
<p>A <dfn id="dfn-dedicatedworker-client">dedicated worker client</dfn> is a <a href="#dfn-service-worker-client">service worker client</a> whose <a for="environment settings object">global object</a> is a {{DedicatedWorkerGlobalScope}} object.</p>
<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 for="environment">execution ready flag</a> is unset, and false otherwise.</p>
1126
+
1127
+
<p class="issue">Defining the execution ready flag is a work in progress. See <a href="https://github.com/whatwg/html/pull/2004">the pull request to HTML</a>.</p>
<li>Let <var>promise</var> be a new <a>promise</a>.</li>
1275
1279
<li>Run these substeps <a>in parallel</a>:
1276
1280
<ol>
1277
-
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="resource">origin</a> is the <a lt="same origin">same</a> as the associated <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1278
-
<p class="issue">For environment type clients, the environment's creation URL's origin should be used for the origin check instead of the client's origin. See <a href="https://github.com/whatwg/html/issues/1992">the issue</a> to define the environment's origin algorithm.</p>
1281
+
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="service worker client">origin</a> is the <a lt="same origin">same</a> as the associated <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1279
1282
<ol>
1280
1283
<li>If <var>client</var>'s <a for="environment">id</a> is not <var>id</var>, continue to the next iteration of the loop.</li>
1281
1284
<li>If <var>client</var> is a type of <a>environment</a>, then:
<li>Let <var>targetClients</var> be an empty array.</li>
1334
-
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="resource">origin</a> is the <a lt="same origin">same</a> as the associated <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1335
-
<p class="issue">For environment type clients, the environment's creation URL's origin should be used for the origin check instead of the client's origin. See <a href="https://github.com/whatwg/html/issues/1992">the issue</a> to define the environment's origin algorithm.</p>
1337
+
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="service worker client">origin</a> is the <a lt="same origin">same</a> as the associated <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1336
1338
<ol>
1337
1339
<li>If <var>client</var> is a type of <a>environment</a>, then:
<li>Let <var>promise</var> be a new <a>promise</a>.</li>
1454
1456
<li>Run the following substeps <a>in parallel</a>:
1455
1457
<ol>
1456
-
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="resource">origin</a> is the <a lt="same origin">same</a> as the <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1457
-
<p class="issue">For environment type clients, the environment's creation URL's origin should be used for the origin check instead of the client's origin. See <a href="https://github.com/whatwg/html/issues/1992">the issue</a> to define the environment's origin algorithm.</p>
1458
+
<li>For each <a href="#dfn-service-worker-client">service worker client</a><var>client</var> whose <a for="service worker client">origin</a> is the <a lt="same origin">same</a> as the <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a for="resource">origin</a>:
1458
1459
<ol>
1459
1460
<li>If <var>client</var> is a type of <a>environment</a>, then:
0 commit comments