From e31b87612da17de881143f7c10c8689e561905fc Mon Sep 17 00:00:00 2001 From: Randolf Jung Date: Mon, 9 Oct 2023 14:34:25 +0200 Subject: [PATCH] Implement `input.FileDialogOpened` --- index.bs | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/index.bs b/index.bs index 245723e96..f73c31675 100644 --- a/index.bs +++ b/index.bs @@ -9547,6 +9547,59 @@ The [=remote end steps=] given |session|, and |command parameters| are: +### Events ### {#module-input-events} + +#### The input.fileDialogOpened Event #### {#event-input-fileDialogOpened} + +
+
Event Type
+
+
+         input.FileDialogOpened = (
+            method: "input.fileDialogOpened",
+            params: input.FileDialogInfo
+         )
+
+         input.FileDialogInfo = {
+            context: browsingContext.BrowsingContext,
+            element: script.SharedReference
+         }
+      
+
+
+ +
+ +The [=remote end event trigger=] is the WebDriver BiDi file dialog +opened steps given |element|. + +1. Let |context| be the |element|'s [=node document=]'s [=/browsing context=]. + +1. Let |context id| be the [=browsing context id=] for |context|. + +1. Let |related browsing contexts| be a [=/set=] containing |context|. + +1. Let |sessions| be the [=set of sessions for which an event is enabled=] + given "input.fileDialogOpened" and |related browsing + contexts|. + +1. If |sessions| is empty, return false. + +1. Let |params| be a [=/map=] matching the input.FileDialogInfo + production, with the context field set to |context id| and + element field set to |element|. + +1. Let |body| be a [=/map=] matching the input.FileDialogOpened + production, with the params field set to |params|. + +1. For each |session| in |sessions|: + + 1. [=Emit an event=] with |session| and |body|. + +1. Return true. + +
+ # Patches to Other Specifications # {#patches} This specification requires some changes to external specifications to provide the necessary