Skip to content

fix: harden resolveTabId against New Tab Override interception#255

Merged
jackwener merged 1 commit intomainfrom
fix/new-tab-override-interception
Mar 22, 2026
Merged

fix: harden resolveTabId against New Tab Override interception#255
jackwener merged 1 commit intomainfrom
fix/new-tab-override-interception

Conversation

@jackwener
Copy link
Owner

Fixes persistent attach failed: Cannot access chrome-extension:// error for users with New Tab Override extensions.

Problem

resolveTabId's reuseTab path navigated to about:blank and waited 200ms, but New Tab Override extensions can intercept about:blank and replace it with chrome-extension://, causing CDP attach to fail.

Fix

After navigating to about:blank, verify the URL is actually debuggable. If intercepted:

  1. Try data:text/html URI (can't be intercepted by New Tab Override)
  2. If that also fails, create a fresh tab as last resort

Ref: #249

resolveTabId's reuseTab path now verifies the URL is actually debuggable
after navigating to about:blank. If a New Tab Override extension intercepts
it (setting it back to chrome-extension://), falls back to a data: URI,
then creates a fresh tab as last resort.

This fixes the persistent 'attach failed: Cannot access chrome-extension://'
error for users with New Tab Override extensions installed.

Ref: #249
@jackwener jackwener merged commit 112fdef into main Mar 22, 2026
11 checks passed
@jackwener jackwener deleted the fix/new-tab-override-interception branch March 22, 2026 13:47
This was referenced Mar 22, 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.

1 participant