File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/bidiMapper/modules/context Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1033,9 +1033,11 @@ export class BrowsingContextImpl {
1033
1033
1034
1034
if ( result instanceof NavigationResult ) {
1035
1035
if (
1036
- // TODO: check after decision on the spec is done:
1037
- // https://github.com/w3c/webdriver-bidi/issues/799.
1038
- result . eventName === NavigationEventName . NavigationAborted ||
1036
+ // If the navigation was committed and then another navigation started, the
1037
+ // command should be considered as successfully finished.
1038
+ // Details:
1039
+ // * https://github.com/w3c/webdriver-bidi/issues/763
1040
+ // * https://github.com/w3c/webdriver-bidi/issues/799
1039
1041
result . eventName === NavigationEventName . NavigationFailed
1040
1042
) {
1041
1043
throw new UnknownErrorException ( result . message ?? 'unknown exception' ) ;
Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ async def test_browsingContext_navigateWaitInteractive_redirect(
45
45
assert messages == [
46
46
AnyExtending ({
47
47
'id' : command_id ,
48
- 'error' : 'unknown error' ,
49
- 'message' : 'navigation canceled by concurrent navigation' ,
50
- 'type' : 'error' ,
48
+ 'result' : {
49
+ 'navigation' : 'stable_0' ,
50
+ 'url' : initial_url
51
+ },
52
+ 'type' : 'success' ,
51
53
}),
52
54
{
53
55
'method' : 'browsingContext.navigationAborted' ,
You can’t perform that action at this time.
0 commit comments