Skip to content

Commit

Permalink
Editorial: use associated Document in place of responsible document (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
miketaylr authored May 25, 2022
1 parent cfb8844 commit 2ea6809
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,9 @@ To <dfn>get related browsing contexts</dfn> given an [=script/settings object=]

1. Let |related browsing contexts| be an empty set

1. If the [=responsible document=] of |settings| is a [=Document=], append the
[=responsible document=]'s [=Document/browsing context=] to |related browsing
contexts|.
1. If |settings|' [=relevant global object=] is a {{Window}}, append |settings|'
[=relevant global object=]'s <a>associated <code>Document</code></a>'s
[=Document/browsing context=] to |related browsing contexts|.

Otherwise if the [=Realm/global object=] specified by |settings| is a
{{WorkerGlobalScope}}, for each |owner| in the [=Realm/global object=]'s
Expand Down Expand Up @@ -3804,7 +3804,8 @@ To <dfn>get a realm from a target</dfn> given |target|:
1. Let |document| be |context|'s [=active document=].

1. Let |environment settings| be the [=environment settings object=] whose
[=responsible document=] is |document|.
[=relevant global object=]'s <a>associated <code>Document</code></a> is
|document|.

1. Let |realm| be |environment settings|' [=realm execution context=]'s
Realm component.
Expand Down Expand Up @@ -4191,7 +4192,8 @@ The [=remote end steps=] with <var ignore>session</var> and |command parameters|

1. If any of the following conditions hold:

* The [=responsible document=] of |settings| is |document|
* The <a>associated <code>Document</code></a> of |settings|'
[=relevant global object=] is |document|

* The [=Realm/global object=] specified by |settings| is a
{{WorkerGlobalScope}} with |document| in its [=owner set=]
Expand Down Expand Up @@ -4282,9 +4284,11 @@ The [=remote end subscribe steps=] with [=subscribe priority=] 2, given

1. Let |related browsing contexts| be a new set.

1. If the [=responsible document=] of |settings| is a [=Document=]:
1. If the <a>associated <code>Document</code></a> of |settings|'
[=relevant global object=] is a [=Document=]:

1. Let |context| be |settings|'s [=responsible document=]'s
1. Let |context| be |settings|'s [=relevant global object=]'s
<a>associated <code>Document</code></a>'s
[=Document/browsing context=]'s [=top-level browsing context=].

1. If |context| is not in |contexts|, continue.
Expand Down Expand Up @@ -4352,7 +4356,9 @@ Define the following [=unloading document cleanup steps=] with |document|:
1. [=Emit an event=] with |session| and |body|.

1. Let |environment settings| be the [=environment settings object=] whose
[=responsible document=] is |document|.
[=relevant global object=]'s <a>associated <code>Document</code></a> is
|document|.


1. Let |realm| be |environment settings|' [=realm execution context=]'s Realm component.

Expand Down

0 comments on commit 2ea6809

Please sign in to comment.