From 1573c2f1f6123d84a6ca92224a01c87dd8fa2602 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 13 Jan 2025 14:00:03 +0100 Subject: [PATCH] Handle navigation committed event --- index.bs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/index.bs b/index.bs index 4157ba0b..8ca2bf35 100644 --- a/index.bs +++ b/index.bs @@ -2840,6 +2840,7 @@ BrowsingContextEvent = ( browsingContext.HistoryUpdated // browsingContext.Load // browsingContext.NavigationAborted // + browsingContext.NavigationCommitted // browsingContext.NavigationFailed // browsingContext.NavigationStarted // browsingContext.UserPromptClosed // @@ -5116,6 +5117,44 @@ aborted steps given |navigable| and |navigation status|: +#### The browsingContext.navigationCommitted Event #### {#event-browsingContext-navigationCommitted} + +
+
Event Type
+
+
+        browsingContext.NavigationCommitted = (
+         method: "browsingContext.navigationCommitted",
+         params: browsingContext.NavigationInfo
+        )
+      
+
+
+ +
+The [=remote end event trigger=] is the WebDriver BiDi navigation +committed steps given |navigable| and |navigation status|: + +1. Let |params| be the result of [=get the navigation info=] given |navigable| + and |navigation status|. + +1. Let |body| be a [=/map=] matching the + browsingContext.NavigationCommitted production, with the + params field set to |params|. + +1. Let |navigation id| be |navigation status|'s id. + +1. Let |related navigables| be a [=/set=] containing |navigable|. + +1. [=Resume=] with "navigation committed", |navigation id|, and |navigation status|. + +1. For each |session| in the [=set of sessions for which an event is enabled=] + given "browsingContext.navigationCommitted" and |related navigables|: + + 1. [=Emit an event=] with |session| and |body|. + +
+ #### The browsingContext.navigationFailed Event #### {#event-browsingContext-navigationFailed}