Skip to content

fix(desktop): keep browser page visible under floating content - #51240

Merged
Hona merged 1 commit into
anomalyco:v2from
Hona:browser-popover-freeze
Sep 25, 2026
Merged

Hona merged 1 commit into
anomalyco:v2from
Hona:browser-popover-freeze

Conversation

@Hona

@Hona Hona commented Sep 25, 2026

Copy link
Copy Markdown
Member

The in-app browser page is a native WebContentsView that always paints above the DOM. When a menu, select, or popover (such as the tab hover card) overlaps it, SessionBrowserPane hid the whole view. As a result, the page went blank until the popover closed.

With this change, the pane shows a still of the page under the popover, and the page no longer disappears.

sequenceDiagram
  participant R as Renderer (pane.tsx)
  participant M as Main (browser-chromium)
  R->>R: covered(rect) = true
  R->>M: BrowserPaneCapture(bindingID, tabID)
  Note over R: native view stays visible meanwhile
  M-->>R: JPEG (capturePage)
  R->>R: decode → <img> in surface
  R->>M: setLayout(visible: false)
  Note over R: popover paints over the still
  R->>R: covered(rect) = false
  R->>M: setLayout(visible: true)
  R->>R: drop still after 150 ms
Loading
  • New BrowserPaneCapture RPC. It returns null for a hidden, blank, or closed page.
  • The native view stays up until the still decodes, so the pane never shows the blank backdrop in between.
  • If the capture fails, the pane falls back to the old hide-only behavior.
  • The change covers every overlapping [data-popper-positioner] (tab hover card, menus, selects). Dialogs are unchanged.
Tab hover card (report) Menu over the page
Before
After still shown under the card (same path as the menu)

@Hona
Hona requested a review from Brendonovich as a code owner September 25, 2026 00:08
Copilot AI lite review requested due to automatic review settings September 25, 2026 00:08

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants