Open whimboo opened 2 years ago
The BiDi client could handle a timeout on its own. But the question is when and how an active navigation should be canceled by the remote end itself. If the client would have to do the cancellation on its own instead, it might not have the necessary navigation id to do so in case of wait
is interactive
or complete
.
The Browser Testing and Tools Working Group just discussed timeout argument for browsingContext.navigate
.
A primitive to cancel a request would be useful for network interception too
I am facing exactly this as I continue to work on the network interception implementation in Chromium.
Should we add the timeout to the navigate command directly in the spec, or should we modify the WPT "navigate" wrapper to support timeouts?
For
wait
states ofinteractive
andcomplete
there is no possibility right now to set a navigation timeout which would meanbrowsingContext.navigate
would never return. Given that we don't want to use the global state (new session's capabilities) we will have to get atimeout
argument added toBrowsingContextNavigateParameters
.