Skip to content

Commit

Permalink
Define commands and events related to navigation (#93)
Browse files Browse the repository at this point in the history
This adds a navigate command to the browsingContext module that
initiates a navigation of the given context to the given URL. The
command also accepts a wait parameter which affects whether it returns
immediately after the navigation is started or waits until the
document that's loaded is eventually parsed. In the case of early
return the navigation id allows later events to be connected to this
specific navigation.

In addition we also add a set of events relating to the navigation
lifecycle, corresponding to the navigation starting, aborting, failing,
reaching domContentLoaded, and reaching load. There is also an event for
synchronous same-page navigations.

There are quite a few open questions here about how we want to expose
error conditions. Currently we emit errors from the command, but these
don't have a lot of structured information and might end up with local
ends trying to parse additional information out of the message part.

Co-authored-by: Brandon Walderman <[email protected]>
Co-authored-by: Philip Jägenstedt <[email protected]>
  • Loading branch information
3 people authored Jul 13, 2021
1 parent 599e2a9 commit 239b782
Showing 1 changed file with 540 additions and 7 deletions.
Loading

0 comments on commit 239b782

Please sign in to comment.