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
A [=window client=] is [=set up|created=] when a [=/browsing context=] is [=created=] and when it [=navigates=].
340
+
A [=window client=] is [=set up a window environment settings object|created=] when a [=/browsing context=] is [=creating a new browsing context|created=] and when it [=navigates=].
341
341
342
-
When a [=window client=] is [=set up|created=] in the process of a [=/browsing context=][=created|creation=]:
342
+
When a [=window client=] is [=set up a window environment settings object|created=] in the process of a [=/browsing context=][=creating a new browsing context|creation=]:
343
343
344
344
If the [=/browsing context=]'s initial [=active document=]'s [=/origin=] is an [=opaque origin=], the [=window client=]'s [=active service worker=] is set to null.
345
345
Otherwise, it is set to the creator [=/document=]'s [=/service worker client=]'s [=active service worker=].
346
346
347
-
When a [=window client=] is [=set up|created=] in the process of the [=/browsing context=]'s [=navigate|navigation=]:
347
+
When a [=window client=] is [=set up a window environment settings object|created=] in the process of the [=/browsing context=]'s [=navigate|navigation=]:
348
348
349
349
If the [=fetch=] is routed through [=/HTTP fetch=], the [=window client=]'s [=active service worker=] is set to the result of the <a lt="Match Service Worker Registration">service worker registration matching</a>.
350
350
Otherwise, if the created [=/document=]'s [=/origin=] is an [=opaque origin=] or not the [=same origin|same=] as its creator [=/document=]'s [=/origin=], the [=window client=]'s [=active service worker=] is set to null.
351
351
Otherwise, it is set to the creator [=/document=]'s [=/service worker client=]'s [=active service worker=].
352
352
353
-
Note: For an initial replacement [=navigate|navigation=], the initial [=window client=] that was [=set up|created=] when the [=/browsing context=] was [=created=] is reused, but the [=active service worker=] is determined by the same behavior as above.
353
+
Note: For an initial replacement [=navigate|navigation=], the initial [=window client=] that was [=set up a window environment settings object|created=] when the [=/browsing context=] was [=creating a new browsing context|created=] is reused, but the [=active service worker=] is determined by the same behavior as above.
354
354
355
355
Note: <a element-attr for=iframe lt=sandbox>Sandboxed</a><{iframe}>s without the sandboxing directives, `allow-same-origin` and `allow-scripts`, result in having the [=active service worker=] value of null as their [=/origin=] is an [=opaque origin=].
0 commit comments