Skip to content

Fix overflow handling in URL bar#320238

Merged
kycutler merged 1 commit into
mainfrom
kycutler/wooden-sturgeon
Jun 6, 2026
Merged

Fix overflow handling in URL bar#320238
kycutler merged 1 commit into
mainfrom
kycutler/wooden-sturgeon

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

@kycutler kycutler commented Jun 6, 2026

Fixes #320197

Copilot AI review requested due to automatic review settings June 6, 2026 15:46
@kycutler kycutler self-assigned this Jun 6, 2026
@kycutler kycutler enabled auto-merge (squash) June 6, 2026 15:47
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/media/browser.css
  • src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a BrowserView URL bar overflow/ellipsis interaction glitch by adjusting how the URL display behaves while focused and when it loses focus, preventing the visual/selection state from remaining in an inconsistent scrolled/overflowed position.

Changes:

  • Reset the URL display’s horizontal scroll position on blur to avoid leaving it scrolled after caret navigation.
  • Disable ellipsis rendering while the URL display is focused (switch to text-overflow: clip) to avoid overflow-related selection artifacts.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts Resets scrollLeft on blur to snap the URL display back to the start after focus leaves.
src/vs/workbench/contrib/browserView/electron-browser/media/browser.css Changes focused URL display to use text-overflow: clip instead of ellipsis while focused.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

@kycutler kycutler merged commit fcc310c into main Jun 6, 2026
26 checks passed
@kycutler kycutler deleted the kycutler/wooden-sturgeon branch June 6, 2026 16:15
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 6, 2026
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.

Browser: URL "..." overflow glitch

3 participants