@@ -3062,16 +3062,16 @@ An <dfn>unhandled prompt behavior struct</dfn> is a [=struct=] with:
3062
3062
A [=remote end=] has a <dfn>viewport overrides map</dfn> which is a weak map between [=user contexts=] and [=viewport configuration=] .
3063
3063
3064
3064
A [=remote end=] has a <dfn>locale overrides map</dfn> which is a weak map between
3065
- [=navigables=] or [=user contexts=] and string or null .
3065
+ [=navigables=] or [=user contexts=] and string.
3066
3066
3067
3067
A [=remote end=] has a <dfn>timezone overrides map</dfn> which is a weak map between
3068
- [=navigables=] or [=user contexts=] and string or null .
3068
+ [=navigables=] or [=user contexts=] and string.
3069
3069
3070
3070
A [=remote end=] has an <dfn>unhandled prompt behavior overrides map</dfn> which is a
3071
3071
weak map between [=user contexts=] and [=unhandled prompt behavior struct=] .
3072
3072
3073
3073
A [=remote end=] has a <dfn>scripting enabled overrides map</dfn> which is a weak
3074
- map between [=navigables=] or [=user contexts=] and boolean or null .
3074
+ map between [=navigables=] or [=user contexts=] and boolean.
3075
3075
3076
3076
### Types ### {#module-browsingcontext-types}
3077
3077
@@ -5938,11 +5938,11 @@ The [=remote end steps=] with |command parameters| are:
5938
5938
|command parameters|["<code>coordinates</code>"] .
5939
5939
5940
5940
1. If |command parameters| [=map/contains=] "<code> userContexts</code> "
5941
- and |command parameters| [=map/contains=] "<code> context </code> ",
5941
+ and |command parameters| [=map/contains=] "<code> contexts </code> ",
5942
5942
return [=error=] with [=error code=] [=invalid argument=] .
5943
5943
5944
5944
1. If |command parameters| doesn't [=map/contain=] "<code> userContexts</code> "
5945
- and |command parameters| doesn't [=map/contain=] "<code> context </code> ",
5945
+ and |command parameters| doesn't [=map/contain=] "<code> contexts </code> ",
5946
5946
return [=error=] with [=error code=] [=invalid argument=] .
5947
5947
5948
5948
1. Let |navigables| be a [=/set=] .
@@ -6005,8 +6005,6 @@ locale on the given top-level traversables or user contexts.
6005
6005
The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
6006
6006
[=remote end=] must have an implementation that runs the following steps:
6007
6007
6008
- 1. Let |emulated locale| be null.
6009
-
6010
6008
1. Let |realm| be [=current Realm Record=] .
6011
6009
6012
6010
1. Let |environment settings| be the [=environment settings object=] whose
@@ -6022,15 +6020,12 @@ The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
6022
6020
6023
6021
1. Let |user context| be |top-level traversable|'s [=associated user context=] .
6024
6022
6025
- 1. If [=locale overrides map=] [=map/contains=] |top-level traversable|, set
6026
- |emulated locale| to [=locale overrides map=] [|top-level traversable|] .
6023
+ 1. If [=locale overrides map=] [=map/contains=] |top-level traversable|, return
6024
+ [=locale overrides map=] [|top-level traversable|] .
6027
6025
6028
- 1. Otherwise, if [=locale overrides map=] [=map/contains=]
6029
- |user context|, set |emulated locale| to
6026
+ 1. If [=locale overrides map=] [=map/contains=] |user context|, return
6030
6027
[=locale overrides map=] [|user context|] .
6031
6028
6032
- 1. If |emulated locale| is not null, return |emulated locale|.
6033
-
6034
6029
1. Return the result of implementation-defined steps in accordance with the
6035
6030
requirements of the [=DefaultLocale=] specification.
6036
6031
@@ -6041,21 +6036,17 @@ The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
6041
6036
The [=remote end steps=] with |command parameters| are:
6042
6037
6043
6038
1. If |command parameters| [=map/contains=] "<code> userContexts</code> "
6044
- and |command parameters| [=map/contains=] "<code> context </code> ",
6039
+ and |command parameters| [=map/contains=] "<code> contexts </code> ",
6045
6040
return [=error=] with [=error code=] [=invalid argument=] .
6046
6041
6047
6042
1. If |command parameters| doesn't [=map/contain=] "<code> userContexts</code> "
6048
- and |command parameters| doesn't [=map/contain=] "<code> context </code> ",
6043
+ and |command parameters| doesn't [=map/contain=] "<code> contexts </code> ",
6049
6044
return [=error=] with [=error code=] [=invalid argument=] .
6050
6045
6051
- 1. Let |emulated locale| be null .
6046
+ 1. Let |emulated locale| be |command parameters| ["<code>locale</code>"] .
6052
6047
6053
- 1. If |command parameters| [=map/contains=] "<code> locale</code> ":
6054
-
6055
- 1. Set |emulated locale| to |command parameters|["<code>locale</code>"] .
6056
-
6057
- 1. If [=IsStructurallyValidLanguageTag=] (|emulated locale|) returns false,
6058
- return [=error=] with [=error code=] [=invalid argument=] .
6048
+ 1. If |emulated locale| is not null and [=IsStructurallyValidLanguageTag=] (|emulated locale|)
6049
+ returns false, return [=error=] with [=error code=] [=invalid argument=] .
6059
6050
6060
6051
1. Let |navigables| be a [=/set=] .
6061
6052
@@ -6074,7 +6065,9 @@ The [=remote end steps=] with |command parameters| are:
6074
6065
6075
6066
1. For each |user context| of |user contexts|:
6076
6067
6077
- 1. [=map/Set=] [=locale overrides map=] [|user context|] to |emulated locale|.
6068
+ 1. If |emulated locale| is null, [=map/remove=] |user context| from [=locale overrides map=] .
6069
+
6070
+ 1. Otherwise, [=map/set=] [=locale overrides map=] [|user context|] to |emulated locale|.
6078
6071
6079
6072
1. [=list/For each=] |top-level traversable| of the list of all
6080
6073
[=/top-level traversables=] whose [=associated user context=] is
@@ -6084,7 +6077,9 @@ The [=remote end steps=] with |command parameters| are:
6084
6077
6085
6078
1. For each |navigable| of |navigables|:
6086
6079
6087
- 1. [=map/Set=] [=locale overrides map=] [|navigable|] to |emulated locale|.
6080
+ 1. If |emulated locale| is null, [=map/remove=] |navigable| from [=locale overrides map=] .
6081
+
6082
+ 1. Otherwise, [=map/set=] [=locale overrides map=] [|navigable|] to |emulated locale|.
6088
6083
6089
6084
1. Return [=success=] with data null.
6090
6085
@@ -6368,22 +6363,14 @@ The <dfn export>WebDriver BiDi scripting is enabled</dfn> steps given
6368
6363
6369
6364
1. Let |top-level traversable| be |navigable|’s [=navigable/top-level traversable=] .
6370
6365
6371
- 1. If [=scripting enabled overrides map=] contains |top-level traversable|:
6372
-
6373
- 1. If [=scripting enabled overrides map=] [|top-level traversable|] is false,
6374
- return false.
6375
-
6376
- 1. Return true.
6366
+ 1. If [=scripting enabled overrides map=] contains |top-level traversable|, return
6367
+ [=scripting enabled overrides map=] [|top-level traversable|]
6377
6368
6378
6369
1. Let |user context| be |top-level traversable|'s [=associated user context=] .
6379
6370
6380
6371
1. If [=scripting enabled overrides map=] contains |user context|, return
6381
6372
[=scripting enabled overrides map=] [|user context|] .
6382
6373
6383
- 1. If [=scripting enabled overrides map=] [|user context|] is false, return false.
6384
-
6385
- 1. Return true.
6386
-
6387
6374
1. Return true.
6388
6375
6389
6376
</div>
@@ -6393,19 +6380,14 @@ The <dfn export>WebDriver BiDi scripting is enabled</dfn> steps given
6393
6380
The [=remote end steps=] with |command parameters| are:
6394
6381
6395
6382
1. If |command parameters| [=map/contains=] "<code> userContexts</code> "
6396
- and |command parameters| [=map/contains=] "<code> context </code> ",
6383
+ and |command parameters| [=map/contains=] "<code> contexts </code> ",
6397
6384
return [=error=] with [=error code=] [=invalid argument=] .
6398
6385
6399
6386
1. If |command parameters| doesn't [=map/contain=] "<code> userContexts</code> "
6400
- and |command parameters| doesn't [=map/contain=] "<code> context </code> ",
6387
+ and |command parameters| doesn't [=map/contain=] "<code> contexts </code> ",
6401
6388
return [=error=] with [=error code=] [=invalid argument=] .
6402
6389
6403
- 1. Let |emulated scripting enabled status| be null.
6404
-
6405
- 1. If |command parameters| [=map/contains=] "<code> enabled</code> ":
6406
-
6407
- 1. Set |emulated scripting enabled status| to
6408
- |command parameters|["<code>enabled</code>"] .
6390
+ 1. Let |emulated scripting enabled status| be |command parameters|["<code>enabled</code>"] .
6409
6391
6410
6392
1. If the <code> contexts</code> field of |command parameters| is present:
6411
6393
@@ -6415,7 +6397,10 @@ The [=remote end steps=] with |command parameters| are:
6415
6397
6416
6398
1. For each |navigable| of |navigables|:
6417
6399
6418
- 1. [=map/Set=] [=scripting enabled overrides map=] [|navigable|] to
6400
+ 1. If |emulated scripting enabled status| is null, [=map/remove=] |navigable| from
6401
+ [=scripting enabled overrides map=] .
6402
+
6403
+ 1. Otherwise, [=map/set=] [=scripting enabled overrides map=] [|navigable|] to
6419
6404
|emulated scripting enabled status|.
6420
6405
6421
6406
1. If the <code> userContexts</code> field of |command parameters| is present:
@@ -6425,7 +6410,10 @@ The [=remote end steps=] with |command parameters| are:
6425
6410
6426
6411
1. For each |user context| of |user contexts|:
6427
6412
6428
- 1. [=map/Set=] [=scripting enabled overrides map=] [|user context|] to
6413
+ 1. If |emulated scripting enabled status| is null, [=map/remove=] |user context| from
6414
+ [=scripting enabled overrides map=] .
6415
+
6416
+ 1. Otherwise [=map/set=] [=scripting enabled overrides map=] [|user context|] to
6429
6417
|emulated scripting enabled status|.
6430
6418
6431
6419
1. Return [=success=] with data null.
@@ -6502,22 +6490,19 @@ steps:
6502
6490
The [=remote end steps=] with |command parameters| are:
6503
6491
6504
6492
1. If |command parameters| [=map/contains=] "<code> userContexts</code> "
6505
- and |command parameters| [=map/contains=] "<code> context </code> ",
6493
+ and |command parameters| [=map/contains=] "<code> contexts </code> ",
6506
6494
return [=error=] with [=error code=] [=invalid argument=] .
6507
6495
6508
6496
1. If |command parameters| doesn't [=map/contain=] "<code> userContexts</code> "
6509
- and |command parameters| doesn't [=map/contain=] "<code> context </code> ",
6497
+ and |command parameters| doesn't [=map/contain=] "<code> contexts </code> ",
6510
6498
return [=error=] with [=error code=] [=invalid argument=] .
6511
6499
6512
- 1. Let |emulated timezone| be null.
6513
-
6514
- 1. If |command parameters| [=map/contains=] "<code> timezone</code> ":
6515
-
6516
- 1. Set |emulated timezone| to |command parameters|["<code>timezone</code>"] .
6500
+ 1. Let |emulated timezone| be |command parameters|["<code>timezone</code>"] .
6517
6501
6518
- 1. If [=IsTimeZoneOffsetString=] (|emulated timezone|) returns false and
6519
- [=AvailableNamedTimeZoneIdentifiers=] does not [=list/contain=]
6520
- |emulated timezone|, return [=error=] with [=error code=] [=invalid argument=] .
6502
+ 1. If |emulated timezone| is not null and
6503
+ [=IsTimeZoneOffsetString=] (|emulated timezone|) returns false and
6504
+ [=AvailableNamedTimeZoneIdentifiers=] does not [=list/contain=]
6505
+ |emulated timezone|, return [=error=] with [=error code=] [=invalid argument=] .
6521
6506
6522
6507
1. Let |navigables| be a [=/set=] .
6523
6508
@@ -6536,8 +6521,10 @@ The [=remote end steps=] with |command parameters| are:
6536
6521
6537
6522
1. For each |user context| of |user contexts|:
6538
6523
6539
- 1. [=map/Set=] [=timezone overrides map=] [|user context|] to
6540
- |emulated timezone|.
6524
+ 1. If |emulated timezone| is null, [=map/remove=] |user context| from
6525
+ [=timezone overrides map=] .
6526
+
6527
+ 1. Otherwise, [=map/set=] [=timezone overrides map=] [|user context|] to |emulated timezone|.
6541
6528
6542
6529
1. [=list/For each=] |top-level traversable| of the list of all
6543
6530
[=/top-level traversables=] whose [=associated user context=] is
@@ -6547,7 +6534,9 @@ The [=remote end steps=] with |command parameters| are:
6547
6534
6548
6535
1. For each |navigable| of |navigables|:
6549
6536
6550
- 1. [=map/Set=] [=timezone overrides map=] [|navigable|] to |emulated timezone|.
6537
+ 1. If |emulated timezone| is null, [=map/remove=] |navigable| from [=timezone overrides map=] .
6538
+
6539
+ 1. Otherwise, [=map/set=] [=timezone overrides map=] [|navigable|] to |emulated timezone|.
6551
6540
6552
6541
1. Return [=success=] with data null.
6553
6542
0 commit comments