Skip to content

Refactor browser error page to a feature contribution#318637

Merged
kycutler merged 1 commit into
mainfrom
kycutler/dear-coyote
May 28, 2026
Merged

Refactor browser error page to a feature contribution#318637
kycutler merged 1 commit into
mainfrom
kycutler/dear-coyote

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 22:10
@kycutler kycutler self-assigned this May 27, 2026
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

Refactors the integrated browser editor’s error/certificate UI so it’s implemented as a dedicated feature contribution instead of being owned directly by BrowserEditor, while also generalizing the editor’s contribution surface for UI widgets and URL rendering.

Changes:

  • Introduces a new BrowserEditorErrorFeatures contribution that renders the error overlay, drives the certificate indicator (“Not Secure”), and decorates URL rendering for cert errors.
  • Replaces the previous ad-hoc contribution hooks (urlBarWidgets, toolbarElements, containerContents) with a unified widgets API keyed by BrowserWidgetLocation, plus a new urlRenderers hook.
  • Updates existing browser editor features (zoom, find, emulation, chat, tab management, renderer overlay) to use the new widget API and locations.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/siteInfoWidget.ts Deleted; site info indicator logic moved into the error feature contribution.
src/vs/workbench/contrib/browserView/electron-browser/features/webContentsViewRendererFeature.ts Migrates placeholder/paused overlay contributions to widgets in the ContentArea location.
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Migrates URL bar hint pill contribution to widgets with PostUrl location.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorZoomFeature.ts Migrates zoom pill to widgets with PostUrl location.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorFindFeature.ts Migrates find widget container insertion to widgets with Toolbar location.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorErrorFeatures.ts New contribution implementing error overlay + certificate indicator + cert-aware URL rendering.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorEmulationFeatures.ts Migrates emulation toolbar insertion to widgets with Toolbar location.
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorChatFeatures.ts Migrates share button container to widgets with PostUrl location.
src/vs/workbench/contrib/browserView/electron-browser/browserView.contribution.ts Registers the new error feature contribution module.
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Introduces BrowserWidgetLocation, IBrowserEditorWidget, and IBrowserUrlRenderer; rewires editor assembly to consume widgets/urlRenderers and removes editor-owned error/cert UI.

Copilot's findings

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

@kycutler kycutler marked this pull request as ready for review May 27, 2026 22:31
@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/browserEditor.ts
  • src/vs/workbench/contrib/browserView/electron-browser/browserView.contribution.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorChatFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorEmulationFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorErrorFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorFindFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorZoomFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/webContentsViewRendererFeature.ts
  • src/vs/workbench/contrib/browserView/electron-browser/siteInfoWidget.ts

@kycutler kycutler enabled auto-merge (squash) May 27, 2026 22:36
@kycutler kycutler merged commit 0ee1ce2 into main May 28, 2026
26 checks passed
@kycutler kycutler deleted the kycutler/dear-coyote branch May 28, 2026 00:30
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 28, 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.

3 participants