@@ -2658,6 +2658,17 @@ browsingContext.ReadinessState = "none" / "interactive" / "complete"
2658
2658
The <code> browsingContext.ReadinessState</code> type represents the stage of
2659
2659
document loading at which a navigation command will return.
2660
2660
2661
+ #### The browsingContext.UserPrompt Type #### {#type-browsingContext-UserPrompt}
2662
+
2663
+ [=Remote end definition=] and [=local end definition=]
2664
+
2665
+ <pre class="cddl remote-cddl local-cddl">
2666
+ browsingContext.UserPromptType = "alert" / "confirm" / "prompt" / "beforeunload";
2667
+ </pre>
2668
+
2669
+ The <code> browsingContext.UserPrompt</code> type represents the possible user
2670
+ prompt types.
2671
+
2661
2672
### Commands ### {#module-browsingContext-commands}
2662
2673
2663
2674
#### The browsingContext.activate Command #### {#command-browsingContext-activate}
@@ -4563,7 +4574,7 @@ failed</dfn> steps given |context| and |navigation status|:
4563
4574
browsingContext.UserPromptClosedParameters = {
4564
4575
context: browsingContext.BrowsingContext,
4565
4576
accepted: bool,
4566
- type: "alert" / "confirm" / "prompt" / "beforeunload" ,
4577
+ type: browsingContext.UserPromptType ,
4567
4578
? userText: text
4568
4579
}
4569
4580
</pre>
@@ -4614,7 +4625,7 @@ closed</dfn> steps given |window|, |type|, |accepted| and optional |user text|
4614
4625
context: browsingContext.BrowsingContext,
4615
4626
handler: "accept" / "dismiss" / "ignore",
4616
4627
message: text,
4617
- type: "alert" / "confirm" / "prompt" / "beforeunload" ,
4628
+ type: browsingContext.UserPromptType ,
4618
4629
? defaultValue: text
4619
4630
}
4620
4631
</pre>
0 commit comments