Skip to content

Improve browser compatibility with modal editor#308399

Merged
kycutler merged 2 commits intomainfrom
kycutler/overlayhang
Apr 8, 2026
Merged

Improve browser compatibility with modal editor#308399
kycutler merged 2 commits intomainfrom
kycutler/overlayhang

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

@kycutler kycutler commented Apr 7, 2026

Fixes #307997

Copilot AI review requested due to automatic review settings April 7, 2026 23:59
@kycutler kycutler self-assigned this Apr 7, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Apr 8, 2026

📬 CODENOTIFY

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

@jruales

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts
  • src/vs/workbench/contrib/browserView/electron-browser/overlayManager.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 improves the integrated browser (BrowserView editor) behavior when the editor is used inside the modal editor overlay (workbench.editor.useModal: "all"), addressing a crash/instability scenario by reducing unnecessary overlay invalidations and tightening overlay overlap detection.

Changes:

  • Filter overlay MutationObserver events to ignore changes originating from within the browser container subtree.
  • Refine overlay overlap detection by checking the topmost element at the overlap point (z-index/top-layer aware).
  • Simplify the overlay pause message setup in BrowserEditor by initializing localized text once during editor creation.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/overlayManager.ts Adjusts overlay mutation handling and overlap detection (adds overlap-center + elementFromPoint topmost check).
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Initializes the overlay pause heading/detail strings once and removes per-update mutation of those nodes.

Copilot's findings

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

Comment thread src/vs/workbench/contrib/browserView/electron-browser/overlayManager.ts Outdated
…anager.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kycutler kycutler enabled auto-merge (squash) April 8, 2026 00:11
@kycutler kycutler merged commit d9f19e8 into main Apr 8, 2026
23 checks passed
@kycutler kycutler deleted the kycutler/overlayhang branch April 8, 2026 00:29
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 8, 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.

Integrated browser crashes when using "withbench.editor.useModal": "all"

4 participants