Skip to content

[BUG] Show pages for links opened in background Chromium tabs - #32

Merged
ignaciojuarez merged 1 commit into
mainfrom
fix/chromium-background-tabs
Nov 11, 2026
Merged

ignaciojuarez merged 1 commit into
mainfrom
fix/chromium-background-tabs

Conversation

@ignaciojuarez

Copy link
Copy Markdown
Owner

What

Links opened in a background tab from a Chromium tab (right-click → Open Link in New Tab, ⌘-click, middle-click) stayed dark and never seemed to load, on every site.

Cause

The page did load, but its view was hidden. Chromium hides the view of any page it creates in the background, and Chrome's own view host un-hides it when the tab is shown. Cobble puts the view in its own window and never un-hid it. Foreground opens (⌘⇧-click) were unaffected. Beta 14 and 15 have the bug.

Fix

One line in Engine/Chromium/ChromiumPage.swift: un-hide the page view when Cobble adds it to the tab. Plus a CHANGELOG line.

Testing

Run in a separate session with a local Full build and an isolated data folder for each run:

  • Right-click → Open Link in New Tab on the reported site and on a local fixture: the page shows.
  • ⌘-click background tab: works.
  • Switching back to the opener, and away and back: both pages still show.
  • swift test: 13 Chromium adapter tests pass.

🤖 Generated with Claude Code

Chromium hides the view of a page it creates in the background (Open Link
in New Tab, ⌘-click, middle-click) until Chrome's own view host shows it.
Cobble hosts that view itself and never unhid it, so the tab stayed dark
even though the page had loaded. Unhide the view when Cobble adopts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ignaciojuarez
ignaciojuarez merged commit fefb3c2 into main Nov 11, 2026
1 check passed
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.

1 participant