Skip to content

Commit b449a2b

Browse files
jimevanswhimboo
andauthored
Update browsingContext.UserPromptOpened event parameters (#738)
* Update browsingContext.UserPromptOpened event parameters Modifies the `handler` property of the event parameters to be of type `session.UserPromptHandlerType`. --------- Co-authored-by: Henrik Skupin <[email protected]>
1 parent 62b8dfe commit b449a2b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

index.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,8 +1667,6 @@ session.SystemProxyConfiguration = (
16671667
[=Remote end definition=] and [=local end definition=]
16681668

16691669
<pre class="cddl remote-cddl local-cddl">
1670-
session.UserPromptHandlerType = "accept" / "dismiss" / "ignore";
1671-
16721670
session.UserPromptHandler = {
16731671
? alert: session.UserPromptHandlerType,
16741672
? beforeUnload: session.UserPromptHandlerType,
@@ -1681,6 +1679,17 @@ session.UserPromptHandler = {
16811679
The <code>session.UserPromptHandler</code> type represents the configuration of
16821680
the user prompt handler.
16831681

1682+
#### The session.UserPromptHandlerType Type #### {#type-session-UserPromptHandlerType}
1683+
1684+
[=Remote end definition=] and [=local end definition=]
1685+
1686+
<pre class="cddl remote-cddl local-cddl">
1687+
session.UserPromptHandlerType = "accept" / "dismiss" / "ignore";
1688+
</pre>
1689+
1690+
The <code>session.UserPromptHandlerType</code> type represents the behavior
1691+
of the user prompt handler.
1692+
16841693
#### The session.SubscriptionRequest Type #### {#type-session-SubscriptionRequest}
16851694

16861695
<pre class="cddl remote-cddl">
@@ -4623,7 +4632,7 @@ closed</dfn> steps given |window|, |type|, |accepted| and optional |user text|
46234632

46244633
browsingContext.UserPromptOpenedParameters = {
46254634
context: browsingContext.BrowsingContext,
4626-
handler: "accept" / "dismiss" / "ignore",
4635+
handler: session.UserPromptHandlerType,
46274636
message: text,
46284637
type: browsingContext.UserPromptType,
46294638
? defaultValue: text

0 commit comments

Comments
 (0)