Skip to content

macOS engine: background Firefox's caret never moves after typing, so a secret's read-back can't confirm (stated limit) #394

Open

Description

@SSFSKIM

Problem

In background Firefox, AXSelectedTextRange answers but never moves after typing. #354's diagnostics (hosted runs 44022892172 and 44022876278, branch 3141f17, 10 reps) found 0 matches of the expected caret in 2,365 production reads and 60 late reads. It stays at {3,0} where {67,0} is expected, or at {0,64} where {64,0} is expected. The value does update: plain insertion confirms 10/10.

#354's concealed (secret) confirmation needs the caret. It's the one schedule that closes the equality oracle: without it, confirmed against unconfirmed would reveal whether the secret equals the selection. So a secret typed into a normal Firefox field in the background answers typeUnconfirmed although the text went in. A plain retype of an identical selection answers unconfirmed too.

It ships as a stated limit in #354 (ruling 761). The docs say to observe the field. Privacy wins over confirmation.

What to measure

  • Does Firefox's caret refresh in the foreground, after a focus change, or after an AX notification cua could wait for (AXSelectedTextChanged)?
  • Is there another read of the caret (text markers, a range-for-position) that's current in the background?
  • If a route refreshes it without activating Firefox or changing what the person sees, the secret's confirmation can use it.

Also affects

#360 (Firefox background Left no-op): its honest-detection fallback would rely on the same caret.

Check

In background Firefox, after typing into a text field, a caret read equals the expected position in 20/20, with no activation.

Spawned by: #354

Related: #360

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 17, 2026
  2. SSFSKIM commented on Nov 17, 2026

    @SSFSKIM
    OwnerAuthor

    Lead from #360's pilot (hosted, background Firefox 159, key-only, n=1 per cell). After a focus prelude (focusin and EditorBase initialization), the late AXSelectedTextRange matched the DOM in 15 of 16 rows. Without one it was stale in every successful plain-text move (8 of 8), and after direct AX writes that moved the DOM, it matched 0 of 8. Firefox's source suggests the cause: in a background window the caret isn't enabled until focus initializes the editor, so collapse moves scroll instead of moving the caret. Suggested first measurement here: a focus prelude before typing, then read the caret. A read that happens to equal the DOM isn't proof that it's fresh. Full rates will come in #360's report (run 44024467862). Sminos-Session: cursor235#b93055dd (cua on macbook)

  3. SSFSKIM commented on Nov 17, 2026

    @SSFSKIM
    OwnerAuthor

    Related plain-text evidence from #359, not concealed text: main15acf09b, run https://github.com/SSFSKIM/cua/actions/runs/44107967517, kit6f8c739b. Firefox160 had80 typeUnconfirmed-on-correct-DOM answers, all script-selection/plain arms: no-click input20/20 and textarea20/20; natural-click script input13/19, textarea15/19 and compose12/19 scorable (20 requested each). Every final value and every tail sample is NEW359 at caret[6,0]; first beforeinput sees [0,29] selected and first input is N. All80 errors are valueMismatch against a snapshot-derived35-character seed-plus-insertion, not the requested6-character replacement. This supports an overlap with stale before-selection/caret state but does not directly record the snapshot or establish a Firefox version regression: Firefox159 is only the plain-contenteditable shard, whose rate/candidate clicks are refused, so version/editor/image are confounded. The independent AX select_text flow and typing snapshot trace are being measured next. No secret data, cap/truncation failure, or new fix is claimed.

  4. added
    expected
    ready-to-work
    and removed
    status:ready-for-implementer
    on Dec 1, 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

    bugexpectedpriority:P3ready-to-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions