@@ -6036,7 +6036,7 @@ about the execution context at the time the language binding specific object ref
6036
6036
converted to an IDL value.
6037
6037
6038
6038
Note: For JavaScript objects, the [=callback context=] is used to hold a reference to the
6039
- <a spec="HTML">incumbent settings object </a> at the time the Object value is converted to an IDL
6039
+ <a spec="HTML">incumbent realm </a> at the time the Object value is converted to an IDL
6040
6040
callback interface type value. See [[#js-callback-interface]].
6041
6041
6042
6042
There is no way to represent a constant object reference value for a particular
@@ -6085,7 +6085,7 @@ An IDL value of the callback function type is represented by a tuple of an objec
6085
6085
reference and a [=callback context=].
6086
6086
6087
6087
Note: As with [=callback interface types=], the [=callback context=] is used to hold a
6088
- reference to the <a spec="HTML">incumbent settings object </a> at
6088
+ reference to the <a spec="HTML">incumbent realm </a> at
6089
6089
the time a JavaScript Object value is converted to an IDL
6090
6090
callback function type value. See [[#js-callback-function]].
6091
6091
@@ -7783,7 +7783,7 @@ values are represented by JavaScript Object values (including [=function objects
7783
7783
7784
7784
1. If <a abstract-op>Type</a>(|V|) is not Object, then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
7785
7785
1. Return the IDL [=callback interface type=] value that represents a reference to |V|, with
7786
- the <a spec="HTML">incumbent settings object </a> as the [=callback context=].
7786
+ the <a spec="HTML">incumbent realm </a> as the [=callback context=].
7787
7787
</div>
7788
7788
7789
7789
<p id="callback-interface-to-js">
@@ -7911,7 +7911,7 @@ IDL [=callback function types=] are represented by JavaScript [=function objects
7911
7911
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
7912
7912
1. Return the IDL [=callback function type=] value
7913
7913
that represents a reference to the same object that |V| represents, with the
7914
- <a spec="HTML">incumbent settings object </a> as the [=callback context=].
7914
+ <a spec="HTML">incumbent realm </a> as the [=callback context=].
7915
7915
</div>
7916
7916
7917
7917
<p id="callback-function-to-js">
@@ -9677,9 +9677,10 @@ Otherwise, it is the [=host interface=]'s [=exposure set=].
9677
9677
9678
9678
1. If |construct|'s [=exposure set=] is not <code>*</code>, and |realm|.\[[GlobalObject]] does
9679
9679
not implement an [=interface=] that is in |construct|'s [=exposure set=], then return false.
9680
- 1. If |realm|'s [=realm/settings object=] is not a [=secure context=], and |construct| is
9681
- [=conditionally exposed=] on [{{SecureContext}}], then return false.
9682
- 1. If |realm|'s [=realm/settings object=]'s
9680
+ 1. If |realm|'s [=realm/principal realm=]'s [=principal realm/settings object=] is not a
9681
+ [=secure context=], and |construct| is [=conditionally exposed=] on [{{SecureContext}}],
9682
+ then return false.
9683
+ 1. If |realm|'s [=realm/principal realm=]'s [=principal realm/settings object=]'s
9683
9684
[=environment settings object/cross-origin isolated capability=] is false, and |construct|
9684
9685
is [=conditionally exposed=] on [{{CrossOriginIsolated}}], then return false.
9685
9686
1. Return true.
@@ -14323,11 +14324,10 @@ the special value “missing”, which represents a missing optional argument.
14323
14324
1. Let |completion| be an uninitialized variable.
14324
14325
1. If |thisArg| was not given, let |thisArg| be <emu-val>undefined</emu-val>.
14325
14326
1. Let |O| be the JavaScript object corresponding to |value|.
14326
- 1. Let |realm| be |O|'s [=associated realm=].
14327
- 1. Let |relevant settings| be |realm|'s [=realm/settings object=].
14328
- 1. Let |stored settings| be |value|'s [=callback context=].
14329
- 1. [=Prepare to run script=] with |relevant settings|.
14330
- 1. [=Prepare to run a callback=] with |stored settings|.
14327
+ 1. Let |relevant realm| be |O|'s [=associated realm=].
14328
+ 1. Let |stored realm| be |value|'s [=callback context=].
14329
+ 1. [=Prepare to run script=] with |relevant realm|.
14330
+ 1. [=Prepare to run a callback=] with |stored realm|.
14331
14331
1. Let |X| be |O|.
14332
14332
1. If <a abstract-op>IsCallable</a>(|O|) is false, then:
14333
14333
1. Let |getResult| be <a abstract-op>Completion</a>(<a abstract-op>Get</a>(|O|, |opName|)).
@@ -14352,8 +14352,8 @@ the special value “missing”, which represents a missing optional argument.
14352
14352
representing the thrown exception.
14353
14353
1. <i id="call-user-object-operation-return">Return:</i> at this
14354
14354
point |completion| will be set to an IDL value or an [=abrupt completion=].
14355
- 1. [=Clean up after running a callback=] with |stored settings |.
14356
- 1. [=Clean up after running script=] with |relevant settings |.
14355
+ 1. [=Clean up after running a callback=] with |stored realm |.
14356
+ 1. [=Clean up after running script=] with |relevant realm |.
14357
14357
1. If |completion| is an IDL value, return |completion|.
14358
14358
1. If |completion| is an [=abrupt completion=] and the operation has a [=return type=]
14359
14359
that is <em>not</em> a [=promise type=], throw |completion|.\[[Value]].
@@ -14434,11 +14434,10 @@ described in the previous section).
14434
14434
marked with [{{LegacyTreatNonObjectAsNull}}].
14435
14435
1. Return the result of [=converted to an IDL value|converting=]
14436
14436
<emu-val>undefined</emu-val> to the callback function's return type.
14437
- 1. Let |realm| be |F|'s [=associated realm=].
14438
- 1. Let |relevant settings| be |realm|'s [=realm/settings object=].
14439
- 1. Let |stored settings| be |callable|'s [=callback context=].
14440
- 1. [=Prepare to run script=] with |relevant settings|.
14441
- 1. [=Prepare to run a callback=] with |stored settings|.
14437
+ 1. Let |relevant realm| be |F|'s [=associated realm=].
14438
+ 1. Let |stored realm| be |callable|'s [=callback context=].
14439
+ 1. [=Prepare to run script=] with |relevant realm|.
14440
+ 1. [=Prepare to run a callback=] with |stored realm|.
14442
14441
1. Let |jsArgs| be the result of [=Web IDL arguments list/converting=] |args| to a JavaScript
14443
14442
arguments list. If this throws an exception, set |completion| to the completion value
14444
14443
representing the thrown exception and jump to the step labeled
@@ -14452,14 +14451,15 @@ described in the previous section).
14452
14451
representing the thrown exception.
14453
14452
1. <i id="invoke-return">Return:</i> at this
14454
14453
point |completion| will be set to an IDL value or an [=abrupt completion=].
14455
- 1. [=Clean up after running a callback=] with |stored settings |.
14456
- 1. [=Clean up after running script=] with |relevant settings |.
14454
+ 1. [=Clean up after running a callback=] with |stored realm |.
14455
+ 1. [=Clean up after running script=] with |relevant realm |.
14457
14456
1. If |completion| is an IDL value, return |completion|.
14458
14457
1. [=Assert=]: |completion| is an [=abrupt completion=].
14459
14458
1. If |exceptionBehavior| is "<code>rethrow</code>", throw |completion|.\[[Value]].
14460
14459
1. Otherwise, if |exceptionBehavior| is "<code>report</code>":
14461
14460
1. [=Assert=]: |callable|'s [=return type=] is {{undefined}} or {{any}}.
14462
- 1. [=Report an exception=] |completion|.\[[Value]] for |realm|'s [=realm/global object=].
14461
+ 1. [=Report an exception=] |completion|.\[[Value]] for |relevant realm|'s
14462
+ [=realm/global object=].
14463
14463
1. Return the unique {{undefined}} IDL value.
14464
14464
1. [=Assert=]: |callable|'s [=return type=] is a [=promise type=].
14465
14465
1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise.reject%}},
@@ -14482,11 +14482,10 @@ a return type that is a [=promise type=].
14482
14482
1. Let |F| be the JavaScript object corresponding to |callable|.
14483
14483
1. If <a abstract-op>IsConstructor</a>(|F|) is <emu-val>false</emu-val>, throw a
14484
14484
<l spec=ecmascript>{{TypeError}}</l> exception.
14485
- 1. Let |realm| be |F|'s [=associated realm=].
14486
- 1. Let |relevant settings| be |realm|'s [=realm/settings object=].
14487
- 1. Let |stored settings| be |callable|'s [=callback context=].
14488
- 1. [=Prepare to run script=] with |relevant settings|.
14489
- 1. [=Prepare to run a callback=] with |stored settings|.
14485
+ 1. Let |relevant realm| be |F|'s [=associated realm=].
14486
+ 1. Let |stored realm| be |callable|'s [=callback context=].
14487
+ 1. [=Prepare to run script=] with |relevant realm|.
14488
+ 1. [=Prepare to run a callback=] with |stored realm|.
14490
14489
1. Let |jsArgs| be the result of [=Web IDL arguments list/converting=] |args| to a JavaScript
14491
14490
arguments list. If this throws an exception, set |completion| to the completion value
14492
14491
representing the thrown exception and jump to the step labeled
@@ -14500,8 +14499,8 @@ a return type that is a [=promise type=].
14500
14499
representing the thrown exception.
14501
14500
1. <i id="construct-return">Return:</i> at this
14502
14501
point |completion| will be set to an IDL value or an [=abrupt completion=].
14503
- 1. [=Clean up after running a callback=] with |stored settings |.
14504
- 1. [=Clean up after running script=] with |relevant settings |.
14502
+ 1. [=Clean up after running a callback=] with |stored realm |.
14503
+ 1. [=Clean up after running script=] with |relevant realm |.
14505
14504
1. If |completion| is an [=abrupt completion=], throw |completion|.\[[Value]].
14506
14505
1. Return |completion|.
14507
14506
</div>
0 commit comments