Skip to content

Commit

Permalink
Handle navigation committed event
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jan 13, 2025
1 parent e25f510 commit 1573c2f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2840,6 +2840,7 @@ BrowsingContextEvent = (
browsingContext.HistoryUpdated //
browsingContext.Load //
browsingContext.NavigationAborted //
browsingContext.NavigationCommitted //
browsingContext.NavigationFailed //
browsingContext.NavigationStarted //
browsingContext.UserPromptClosed //
Expand Down Expand Up @@ -5116,6 +5117,44 @@ aborted</dfn> steps given |navigable| and |navigation status|:

</div>

#### The browsingContext.navigationCommitted Event #### {#event-browsingContext-navigationCommitted}

<dl>
<dt>Event Type</dt>
<dd>
<pre class="cddl local-cddl">
browsingContext.NavigationCommitted = (
method: "browsingContext.navigationCommitted",
params: browsingContext.NavigationInfo
)
</pre>
</dd>
</dl>

<div algorithm>
The [=remote end event trigger=] is the <dfn export>WebDriver BiDi navigation
committed</dfn> 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
<code>browsingContext.NavigationCommitted</code> production, with the
<code>params</code> 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 "<code>navigation committed</code>", |navigation id|, and |navigation status|.

1. For each |session| in the [=set of sessions for which an event is enabled=]
given "<code>browsingContext.navigationCommitted</code>" and |related navigables|:

1. [=Emit an event=] with |session| and |body|.

</div>


#### The browsingContext.navigationFailed Event #### {#event-browsingContext-navigationFailed}

Expand Down

0 comments on commit 1573c2f

Please sign in to comment.