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
<li>Run the following substeps <a>in parallel</a>:
1448
1448
<ol>
1449
1449
<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>:
1450
+
<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>
1450
1451
<ol>
1451
-
<li>If <var>client</var> is not a <a>secure context</a>, continue to the next iteration of the loop.</li>
1452
+
<li>If <var>client</var> is a type of <a>environment</a>, then:
1453
+
<ol>
1454
+
<li>If <var>client</var>’s <a>creation URL</a> is not a <a>potentially trustworthy URL</a>, continue to the next iteration of the loop.</li>
1455
+
</ol>
1456
+
</li>
1457
+
<li>Else:
1458
+
<ol>
1459
+
<li>If <var>client</var> is not a <a>secure context</a>, continue to the next iteration of the loop.</li>
1460
+
</ol>
1461
+
</li>
1452
1462
<li>Let <var>registration</var> be the result of running <a href="#scope-match-algorithm">Match Service Worker Registration</a> algorithm passing <var>client</var>'s <a>creation URL</a> as the argument.</li>
1453
1463
<li>If <var>registration</var> is not the <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>'s <a href="#dfn-containing-service-worker-registration">containing service worker registration</a>, continue to the next iteration of the loop.</li>
1454
-
<li>If <var>client</var>'s <a href="#dfn-active-worker">active worker</a> is not the <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>, then:
1464
+
<li>If <var>client</var>'s <a>active service worker</a> is not the <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>, then:
1455
1465
<ol>
1456
1466
<li>Invoke <a href="#on-client-unload-algorithm">Handle Service Worker Client Unload</a> with <var>client</var> as the argument.</li>
1457
-
<li>Set <var>client</var>'s <a href="#dfn-active-worker">active worker</a> to <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>.</li>
1467
+
<li>Set <var>client</var>'s <a>active service worker</a> to <a href="#dfn-service-worker-global-scope-service-worker">service worker</a>.</li>
1458
1468
<li>Invoke <a href="#notify-controller-change-algorithm">Notify Controller Change</a> algorithm with <var>client</var> as the argument.</li>
0 commit comments