Skip to content

Commit fd7daf9

Browse files
committed
Convert user prompt types into a separate type
1 parent efbfe85 commit fd7daf9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

index.bs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,6 +2658,17 @@ browsingContext.ReadinessState = "none" / "interactive" / "complete"
26582658
The <code>browsingContext.ReadinessState</code> type represents the stage of
26592659
document loading at which a navigation command will return.
26602660

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+
26612672
### Commands ### {#module-browsingContext-commands}
26622673

26632674
#### The browsingContext.activate Command #### {#command-browsingContext-activate}
@@ -4563,7 +4574,7 @@ failed</dfn> steps given |context| and |navigation status|:
45634574
browsingContext.UserPromptClosedParameters = {
45644575
context: browsingContext.BrowsingContext,
45654576
accepted: bool,
4566-
type: "alert" / "confirm" / "prompt" / "beforeunload",
4577+
type: browsingContext.UserPromptType,
45674578
? userText: text
45684579
}
45694580
</pre>
@@ -4614,7 +4625,7 @@ closed</dfn> steps given |window|, |type|, |accepted| and optional |user text|
46144625
context: browsingContext.BrowsingContext,
46154626
handler: "accept" / "dismiss" / "ignore",
46164627
message: text,
4617-
type: "alert" / "confirm" / "prompt" / "beforeunload",
4628+
type: browsingContext.UserPromptType,
46184629
? defaultValue: text
46194630
}
46204631
</pre>

0 commit comments

Comments
 (0)