fix(browser): update URL bar after JS cross-origin redirect - #34834
fix(browser): update URL bar after JS cross-origin redirect#34834joaoloureirop wants to merge 2 commits into
Conversation
Treat a completed load on a new origin as committed so the address bar does not stay on the previous site after window.location.href. Co-authored-by: Cursor <cursoragent@cursor.com>
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
The Appium smoke looked at the hidden modal input after navigation. Read the visible display text and match origin as a substring. Co-authored-by: Cursor <cursoragent@cursor.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
All changes are scoped to the Browser feature area. The smoke spec lives in Performance Test Selection: |
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|



Description
onLoadEndonly updated the URL bar whenstarted && endedor the origin was unchanged. A JavaScriptwindow.location.hrefnavigation to another origin often has no matchingonLoadStart, so the bar kept the previous origin.A completed load on a new origin is now treated as a committed navigation. The skipped Appium coverage for this path is enabled again.
Changelog
CHANGELOG entry: Fixed the in-app browser URL bar not updating after a JavaScript cross-origin redirect
Related issues
Fixes: #33815
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist