Skip to content

Commit 0c42aff

Browse files
Fix linking errors on [=document=] (#1751)
Bikeshed originally said: Multiple possible 'document' dfn refs. Arbitrarily chose https://dom.spec.whatwg.org/#clone-a-node-document To auto-select one of the following refs, insert one of these lines into a <pre class=link-defaults> block: spec:dom; type:dfn; for:clone a node; text:document spec:dom; type:dfn; for:/; text:document [=document=] I think all of them are intended to be [=/document=] instead of [=clone a node/document=].
1 parent a14460b commit 0c42aff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/index.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
329329
When a [=window client=] is [created](https://html.spec.whatwg.org/#set-up-a-window-environment-settings-object) in the process of a [=/browsing context=] [creation](https://html.spec.whatwg.org/#creating-a-new-browsing-context):
330330

331331
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.
332-
Otherwise, it is set to the creator [=document=]'s [=/service worker client=]'s [=active service worker=].
332+
Otherwise, it is set to the creator [=/document=]'s [=/service worker client=]'s [=active service worker=].
333333

334334
When a [=window client=] is [created](https://html.spec.whatwg.org/#set-up-a-window-environment-settings-object) in the process of the [=/browsing context=]'s [=navigate|navigation=]:
335335

336336
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>.
337-
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.
338-
Otherwise, it is set to the creator [=document=]'s [=/service worker client=]'s [=active service worker=].
337+
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.
338+
Otherwise, it is set to the creator [=/document=]'s [=/service worker client=]'s [=active service worker=].
339339

340340
Note: For an initial replacement [=navigate|navigation=], the initial [=window client=] that was [created](https://html.spec.whatwg.org/#set-up-a-window-environment-settings-object) when the [=/browsing context=] was [created](https://html.spec.whatwg.org/#creating-a-new-browsing-context) is reused, but the [=active service worker=] is determined by the same behavior as above.
341341

@@ -354,7 +354,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
354354
Otherwise, it is set to the [=active service worker=] of the [=environment settings object=] of the last [=set/item=] in the [=worker client=]'s [=/global object=]'s [=owner set=].
355355
</section>
356356

357-
Note: [=Window clients=] and [=worker clients=] with a [data: URL](https://tools.ietf.org/html/rfc2397#section-2) result in having the [=active service worker=] value of null as their [=/origin=] is an [=opaque origin=]. [=Window clients=] and [=worker clients=] with a [=blob URL=] can inherit the [=active service worker=] of their creator [=document=] or owner, but if the [=/request=]'s [=request/origin=] is not the [=same origin|same=] as the [=/origin=] of their creator [=document=] or owner, the [=active service worker=] is set to null.
357+
Note: [=Window clients=] and [=worker clients=] with a [data: URL](https://tools.ietf.org/html/rfc2397#section-2) result in having the [=active service worker=] value of null as their [=/origin=] is an [=opaque origin=]. [=Window clients=] and [=worker clients=] with a [=blob URL=] can inherit the [=active service worker=] of their creator [=/document=] or owner, but if the [=/request=]'s [=request/origin=] is not the [=same origin|same=] as the [=/origin=] of their creator [=/document=] or owner, the [=active service worker=] is set to null.
358358
</section>
359359

360360
<section>

0 commit comments

Comments
 (0)