Repository navigation
Use pending URLs when restoring browser tabs - #346996
Merged
Kyle Cutler (kycutler) merged 1 commit intoNov 9, 2026
Merged
Kyle Cutler (kycutler) merged 1 commit into
Kyle Cutler (kycutler) merged 1 commit into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Kyle Cutler (@kycutler)Matched files:
Joaquín Ruales (@jruales)Matched files:
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No actionable review issues remain, though validation did not include a full restart or Chromium UI run.
No open issues 🎉
What changed in this PR
Fixes #346992 by making unresolved restored Integrated Browser tabs use the latest pending URL when creating their native view, rather than the saved URL.
Changes:
- Reads the current input URL during lazy restoration.
- Shares existing URL normalization between restoration and normal navigation.
- Adds registered-command regression tests for tab reuse and bare-localhost normalization.
No actionable findings remain. Reported validation covers native creation requests; a full restart and Chromium UI run was not performed.
| File | Description |
|---|---|
src/vs/workbench/contrib/browserView/test/electron-browser/browserViewWorkbenchService.test.ts |
Adds regression coverage for pending URLs and localhost normalization. |
src/vs/workbench/contrib/browserView/electron-browser/browserViewWorkbenchService.ts |
Uses the current normalized input URL when restoring a native view. |
src/vs/workbench/contrib/browserView/common/browserView.ts |
Extracts existing navigation normalization into a shared helper. |
Review effort: Balanced
Kyle Cutler (kycutler)
approved these changes
Nov 9, 2026
Kyle Cutler (kycutler)
left a comment
Collaborator
There was a problem hiding this comment.
Looks great, thank you Sameer (@sameerihs)!
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 9, 2026
roblourens
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #346992
Reusing an unresolved restored browser tab updates its pending URL, but native creation still uses the captured saved URL. Read the current pending URL when resolving the tab.
Reuse normal navigation's scheme normalization so bare destinations such as
localhost:3000/requestedcontinue to receivehttp://. The helper contains the existing normalization unchanged and serves both paths.The registered-command regression fails before the fix. A second case preserves bare-localhost behavior. Both cases and all 58 tests across six nearby files pass, along with targeted ESLint and the combined core no-emit typecheck. Validation covers the native creation request; a full restart/Chromium UI run was not performed.