Skip to content

Make browser ownership mutable - #332038

Draft
Kyle Cutler (kycutler) wants to merge 1 commit into
mainfrom
kycutler/mutableowner
Draft

Make browser ownership mutable#332038
Kyle Cutler (kycutler) wants to merge 1 commit into
mainfrom
kycutler/mutableowner

Conversation

@kycutler

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings August 21, 2026 20:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Makes integrated browser ownership mutable across main and renderer processes.

Changes:

  • Adds owner mutation APIs and change events.
  • Mirrors ownership changes in renderer models.
  • Ensures newly opened child views inherit current ownership.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/common/browserView.ts Adds mutable model ownership.
src/vs/platform/browserView/electron-main/browserViewMainService.ts Exposes ownership mutation and forwards child ownership.
src/vs/platform/browserView/electron-main/browserView.ts Stores mutable ownership and emits changes.
src/vs/platform/browserView/common/browserView.ts Extends the service contract.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/vs/workbench/contrib/browserView/common/browserView.ts
@kycutler
Kyle Cutler (kycutler) marked this pull request as ready for review August 21, 2026 22:12
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Joaquín Ruales (@jruales)

Matched files:

  • src/vs/platform/browserView/common/browserView.ts
  • src/vs/platform/browserView/electron-main/browserView.ts
  • src/vs/platform/browserView/electron-main/browserViewMainService.ts
  • src/vs/workbench/contrib/browserView/common/browserView.ts

@kycutler
Kyle Cutler (kycutler) marked this pull request as draft August 21, 2026 22:38

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done. The optimization reduces unnecessary allocations.

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.

4 participants