Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: use associated Document in place of responsible document #182

Merged
merged 3 commits into from
May 25, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 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 @@ -1010,7 +1010,7 @@ Issue: Define in detail how {{SandboxProxy}} works
## SandboxWindowProxy ## {#sandbox-sandboxwindowproxy}

<xmp class=idl>
[Exposed=]
[Exposed]
interface SandboxWindowProxy : WindowProxy {};
</xmp>

Expand Down Expand Up @@ -3655,7 +3655,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 @@ -3979,7 +3980,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 @@ -4070,9 +4072,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 @@ -4140,7 +4144,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