Skip to content

Linux engine: a Chromium drag that never takes pays the hold up to press + 250 ms (M4 speed gap) #263

Open

Description

@SSFSKIM

Problem & intent

cua's Linux engine, since #171 M3 task 22, holds every drag into Chromium that has no XdndSelection take by the path's end until press + 250 ms. This is so a late take still lands. A drag that never takes, such as a plain text selection, pays the difference: a 40 px selection in Chrome goes from about 134 ms to about 355 ms. The hold was sized from M3's measurements: takes came at 53-78 ms, up to about 134 ms cold in gate runs. This is a declared M4 speed gap.

Intent: drags into Chromium that never take should cost no more than the path itself, without losing a late take.

Seams: the Linux engine's drag hold (native/linux-engine, task 22's hold and keepalive), the M3 differential harness's Chromium drag series.

Constraints

Success criteria

  • A rule that tells a non-taking drag from a slow take early enough to release sooner, measured on Chrome's selection and drop series, with a speed result against the vendor builds. Candidates: whether the path ends over a drop-capable target, the source's own drag start, Chromium's XdndAware state.
  • Or a recorded reason no such signal exists, with the cost kept as a stated limit.

Decision log

Sources

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P2
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 10, 2026
  3. SSFSKIM commented on Nov 10, 2026

    @SSFSKIM
    OwnerAuthor

    Update from #171 M4 (T13, feat/171-m4). T13 looked for a signal that a Chromium drag will never take, to skip the press + 250 ms hold, and found none. Every start-role rule has false negatives: a draggable span in a paragraph 30/30, a link's text 20/20 (hit-test results only), a draggable child of an ARIA slider 30/30, a nested span with a 150 ms dragstart 30/30 (idle), and a draggable canvas 30/30. XdndAware is set on every Chrome window. The hold also caught 5 natural takes after the path's end at the gate's window load. So the hold stays, and this stays a declared gap; T13's false-negative list is its evidence (docs/evidence/2026-10-28-own-linux-engine/m4/drop-signals/). For scale: on T14's build, the 40 px selection measures 254 ms, level with the vendor builds.

  4. added a commit that references this issue on Nov 14, 2026
  5. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    Landed with #171 M4, PR #380 (78b4959, linux-engine-v0.4.0).

    Status from #171 M4's release gate (candidate 3, c55c8e0). The press + 250 ms hold ships unchanged. T13 found no never-take signal: every start-role rule has false negatives, and XdndAware is on every Chrome window (m4/drop-signals/; the comment above).

    The gate keeps the hold's purpose: device-chrome-dnd's landing cases are 9/9 with cold samples included (V5, candidate 2's record, standing for candidate 3), and the real late takes behind the hold are reported (C1: 13 of 13). No gate step measures the 40 px selection against the vendor builds; T14 measured 254 ms, level with them.

    The PR states the cost as a declared limit. This ticket stays open as that limit's record, for a never-take signal if one is ever found.

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:P2status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions