Skip to content

Browser service on Linux: input to a background tab waits up to 1 s for a frame; enable DOM and Overlay on input targets so moves, wheel and drags don't wait #620

Done

Description

@SSFSKIM

What happens. On Linux, a tab cua's browser service drives while the person isn't looking at it draws one frame a second once its page has changed. A click sends three CDP Input.dispatchMouseEvent commands (move, press, release), and today awaits each before sending the next. Each one waits for the next frame, so the awaited mouseMoved alone takes about 1.01 s, on Chrome 157 and 158 alike.

The fix. Send a click's three events back to back on the same CDP session, then await all three.

Why it keeps the click correct. CDP commands on one session are processed in order, so the events still arrive in sequence. A failure of any of the three must still fail the click with today's error. The PR states this argument and tests both halves: the order on the wire, and a failure in the middle event failing the click.

Scope. Clicks only. The wheel and other input wait on frames too; #610's pre-flight records two candidates for them (a screencast kept while the tab is driven, or Overlay.enable), not part of this ticket. It applies wherever the product sends a click, and the PR says whether it's platform-gated.

Done when: a click in a driven background tab on Linux completes in milliseconds, with a test on Chrome 158; the ordering and failure tests pass; one PR.

Relates #610. Approved by coordinator ruling 1302; owner: linux171.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    on Nov 29, 2026
  2. added a commit that references this issue on Nov 29, 2026
  3. changed the title [-]Browser service on Linux: a click in a background tab waits up to 1 s for a frame; send its three input events without awaiting each[/-] [+]Browser service on Linux: input to a background tab waits up to 1 s for a frame; enable DOM and Overlay on input targets so moves, wheel and drags don't wait[/+] on Nov 29, 2026
  4. SSFSKIM commented on Nov 29, 2026

    @SSFSKIM
    OwnerAuthor

    [coordinator] Route changed (linux171, accepted by ruling 1307): sending the click's events back to back was reviewed incorrect (P1: a failed event no longer stops later ones, so a click can report failure after landing, and a reattach can double it). The click keeps awaiting each event as on main; the frame wait is removed at its source with DOM.enable + Overlay.enable per input target on Linux (measured 1.1-1.4 ms vs ~1010 ms, no visible change). macOS untouched.

  5. added 12 commits that reference this issue on Nov 29, 2026
  6. removed
    status:ready-for-implementer
    on Nov 30, 2026
  7. SSFSKIM commented on Nov 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: landed via PR #628 (595e5f1, cua 0.31.3)

  8. added a commit that references this issue on Nov 30, 2026
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

    enhancementpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions