Skip to content

Stale-point guard keeps a click on an inert decoration that moved from a replaced link into its replacement #443

Closed

Description

@SSFSKIM

Problem

The observation records an inert decoration at the click point: an icon, a badge, or a wrapper inside link A. The guard treats the decoration as the target. When A is replaced by link B, and the page moves the same decoration element into B (or the decoration survives across the swap), the decoration's handle is alive and in place. The guard keeps the click (sameElement), and it lands on B.

Measured in #433's qualification (kit probe/433-qual, cell decomove, batch A, run 44715767925): main 870dd117 landed on B 40 out of 40 times on CfT and on Electron. Safari refused nodeGone. #433's intermediate head 2a1b0368 refused it with a content-of-control check (a link's content must still lie inside its recorded link). That check was removed from #433, because over three review rounds it kept refusing ordinary link-text clicks that main keeps: text re-rendered inside an unchanged link, unread parents or children, overflowing labels, and same-title links.

What to do

Refuse when the recorded node's recorded control is confirmed gone: its handle is invalid (kAXErrorInvalidUIElement), not just unreadable. In that case, a surviving decoration can't vouch for the click. Act only on that confirmation:

  • a failed or inconclusive read keeps the click, as main does;
  • a live control containing the node keeps the click, as main does.

Measure against #433's keep and link-text cells (retext, plain, like, remount, textbehind, #340's cells), so that no ordinary click is refused.

Check

Found by #433's qualification and review.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  2. added
    status:in-review
    and removed
    status:in-progress
    on Nov 22, 2026
  3. SSFSKIM commented on Nov 22, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-medium (a5d54fee), 3 rounds: 1d3b096 -> 1 P2 fixed 2a3c7e5; hosted smoke 44997131965 found 2 false refusals -> narrowing f394677 (ruling 1061); re-review -> 2 P2 + 2 P3 fixed df38312 (last wave). Counted qual df38312 vs dfe6f44 (A 45003171589, B 45035915969, C 45040636364; README a314e4f): decomove controlGone 20/20 CfT+Electron, keep rows 0/1800 differ, false refusals 0.

  4. removed
    status:in-review
    on Nov 22, 2026
  5. SSFSKIM commented on Nov 22, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #477 (cua 0.28.29)

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:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions