Skip to content

chore(bidi): fix redirected navigations from HAR routers#41377

Open
hbenl wants to merge 1 commit into
microsoft:mainfrom
hbenl:har-redirected-navigation
Open

chore(bidi): fix redirected navigations from HAR routers#41377
hbenl wants to merge 1 commit into
microsoft:mainfrom
hbenl:har-redirected-navigation

Conversation

@hbenl

@hbenl hbenl commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

For redirected navigations from HAR routers to be handled correctly, navigateFrame() needs to throw a NavigationAbortedError containing the correct documentId. Unfortunately the Bidi error for browsingContext.navigate doesn't contain it so we need to take it from the preceding browsingContext.navigationFailed event.

Fixes the following tests in library/browsercontext-har.spec.ts:

  • "should change document URL after redirected navigation"
  • "should goBack to redirected navigation"
  • "should goForward to redirected navigation" (this one's still flaky due to Bug 1987774)
  • "should reload redirected navigation"

@hbenl hbenl force-pushed the har-redirected-navigation branch from 1869dbf to 1d33e85 Compare June 19, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant