Skip to content

cua route: a foreign extension's iframe wedges the tab (port the vendor's foreign-frame monitor + popup interceptor; host logs refused requests) #81

Closed

Description

@SSFSKIM

Bug (measured 2026-10-07, after #10)

On cua's own-extension route, a tab becomes permanently undrivable as soon as a form field is focused while another
extension injects an iframe into the page. The owner's Chrome has an input-helper extension
(pejdijmoenmkgeppbflobdenhhabjlaj, injects /completion_list.html, 9001 px wide, invisible) that does this on focus
of any field (password or text). Chrome then detaches the debugger and refuses re-attach with
Cannot access a chrome-extension:// URL of different extension; the vendor service surfaces it as "Google Chrome is
blocking automation because another extension UI is open on this page…". After that, every call on the tab —
navigation, read, screenshot, even closing it — fails for the tab's life; a fresh tab fails again on its first focus.

Same Chrome session, minutes apart, same loopback page and timing: ChatGPT-extension route 8/8 fills (twice), cua route
0/8. So it is the route, not the manager's state. Probe scripts and results: /Users/new/.claude/jobs/1ea561bc/tmp/pm-probe/
(cua-route/, vendor-rerun/). Earlier #10 acceptance saw it only on password fields (text 0/13 failures) — the helper's
behaviour varies.

Why the vendor route recovers (likely, not verified): its content script content-scripts/foreign-frame-monitor.js
blanks iframes from other extensions in controlled tabs, so a re-attach after the detach finds no foreign frame. Its
attach/re-attach code may also differ; compare before implementing.

Fix

  1. Port the vendor's foreign-frame behaviour: a content script (or chrome.scripting.executeScript on session-owned
    tabs only) that neutralises chrome-extension:// iframes of other extensions in tabs a session owns, on injection
    (MutationObserver) and before re-attach. Needs scripting + host_permissions: ["<all_urls>"] in the manifest —
    the one permission the Store scrutinises, so land it before the first Store upload (Chrome Web Store listing for cua's extension (unlisted; owner action) #78) to avoid a second
    review.
  2. While the permissions are there, the same bundle should intercept window.open in session-owned tabs so the popup
    becomes a session-owned tab (today it becomes a "user tab" the agent must claim) — the vendor's popup interceptor.
  3. The host logs every refused extension request with the method, the debuggee and Chrome's original error string
    (today nothing is logged for a refused attach/sendCommand), so the next such case is diagnosable from
    $CUA_HOME/chrome/logs/.
  4. Acceptance: the pm-probe page (password + text field) 8/8 on the cua route with the input-helper extension enabled
    in personal; a window.open from an agent tab appears in the session's tabs.list() without a claim; the
    linux-chrome and accept-chrome --route cua runners still pass; the extension's contract test covers the new
    primitives.

Decision Log entry in docs/doperpowers/specs/2026-10-07-own-chrome-extension-design.md (the design said "no content
scripts"; this reverses it for the two behaviours above, cursor overlay still excluded).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    on Oct 8, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Oct 8, 2026
  3. SSFSKIM commented on Oct 8, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Owner approved 2026-10-07; building on fix/foreign-frames (worktree cua-wt-81).

  4. added
    status:in-review
    and removed
    status:in-progress
    on Oct 8, 2026
  5. SSFSKIM commented on Oct 8, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #84: page guards + host refusal log; live pm-probe 8/8 twice (was 0/8), popup in session, accept-chrome cua 40/40; review fixes d7970a5 stub-proven, need an extension reload to be live

  6. added 2 commits that reference this issue on Oct 8, 2026
  7. removed
    status:in-review
    on Oct 8, 2026
  8. SSFSKIM commented on Oct 8, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Merged PR #84 (651d10c): foreign-frame guard + popup interceptor; live 8/8 (was 0/8) on the review-fixed code; 955 tests; plugin 0.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions