Skip to content

Linux: a CDP click in a tab whose window the person isn't using raises that window and takes their focus (Chrome's own behaviour; parity with the vendor's route) #622

Backlog

Description

@SSFSKIM

What happens. On Linux, when cua's browser service clicks in a tab it drives, and that tab is the active tab of a window the person isn't using, Chrome raises the window and gives it the focus. A minimized window is restored. This was measured 60 of 60 through cua's product route in #610's pre-flight, and 30 of 30 with plain Chrome for Testing 158 and no extension, driven through its DevTools port.

Whose it is. It comes from Chrome's handling of a CDP mouse press, not from cua's code. mouseMoved alone and Runtime.evaluate never raise the window. The vendor's browser service sends a click as the same three events, so its route would do the same; that's inferred, because the vendor host is retired on Linux (#115, #135). On macOS a press doesn't raise the window at all (36 of 36).

Why it matters. cua's design promises to leave the person's windows alone (docs/doperpowers/specs/2026-10-07-own-chrome-extension-design.md). A click that brings a window forward takes the person's focus mid-typing. It's a design violation even at parity.

Evidence: docs/evidence/2026-11-29-chrome158-background-cdp/linux/focus-158.* and the product-route rows, on branch 610-preflight (1a60a32).

To find out: whether any CDP route delivers a click to a background window's tab on Linux without Chrome raising it, for example an Input.dispatchMouseEvent variant, Input.dispatchDragEvent, a synthetic DOM click via Runtime.callFunctionOn, or a click that X11 delivers without focus. Then what each costs in fidelity against a real press.

Relates #610. Registered by the coordinator (ruling 1304) from linux171's body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions