Skip to content

Commit b6adb45

Browse files
Clarify script.addPreloadScript with duplicate context (#620)
1 parent 77463df commit b6adb45

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.bs

+7-3
Original file line numberDiff line numberDiff line change
@@ -8298,16 +8298,20 @@ The [=remote end steps=] given |session| and |command parameters| are:
82988298
1. Let |arguments| be the <code>arguments</code> field of |command
82998299
parameters| if present, or an empty [=/list=] otherwise.
83008300

8301-
1. Let the |contexts| be the value of the <code>contexts</code> field of |command parameters| if it is present or null if it isn’t.
8301+
1. Let |contexts| be null.
83028302

8303-
1. If |contexts| is not null:
8303+
1. If the <code>contexts</code> field of |command parameters| is present:
83048304

8305-
1. For each |context id| of |contexts|:
8305+
1. Set |contexts| to an empty [=/set=].
8306+
8307+
1. For each |context id| of |command parameters|["<code>contexts</code>"]
83068308

83078309
1. Let |context| be the result of [=trying=] to [=get a browsing context=] with |context id|.
83088310

83098311
1. If |context| is not a [=top-level browsing context=], return [=error=] with [=error code=] [=invalid argument=].
83108312

8313+
1. Append |context| to |contexts|.
8314+
83118315
1. Let |sandbox| be the value of the "<code>sandbox</code>" field in |command
83128316
parameters|, if present, or null otherwise.
83138317

0 commit comments

Comments
 (0)