fix(bidi): guard nullable navigation fields in event handlers#40763
fix(bidi): guard nullable navigation fields in event handlers#40763SebTardif wants to merge 2 commits into
Conversation
|
This would beed a test that is failing w/o the fix. |
Add test to verify BiDi navigation events with null navigation are handled gracefully. Tests navigation to about:blank, history.pushState, and goBack scenarios.
Test results for "MCP"32 failed 7025 passed, 1068 skipped Merge workflow run. |
Test results for "tests 1"1 flaky41733 passed, 857 skipped Merge workflow run. |
Summary
params.navigation(typedNavigation | null) in_onNavigationStartedand_onNavigationCommittedinstead of using non-null assertionsframe(frameId)in_onNavigationCommittedto handle destroyed frames_onNavigationAborted(line 217),_onNavigationFailed(line 221), and_onFragmentNavigated(line 225)Introduced in #32434 (2024-09-04), refined in #35820 and #38129.