Skip to content

macOS engine: type_text's paste route never confirms in background Firefox (read-back snapshot reads the field before Firefox's focus settles) #427

Open

Description

@SSFSKIM

Problem

Under a non-Latin input source, type_text pastes. With #361, the paste route answers success only when the field reads back exactly. In background Firefox it never does, because that read-back can't read the field.

Measured in #361's qualification (run 44442976031, README scripts/probe-361/README.md at 92a78f2d on probe/361-qual; Firefox 160 on hosted macOS; Korean, Japanese Romaji/Kana and Pinyin):

  • Exact pastes: all 480 were delivered exactly, and all 480 answered typeUnconfirmed: rangeUnreadable 291, fieldChanged 189. None was valueMismatch or a false success.
  • Main confirmed them on Fix Chrome background paste clipboard-read timeouts in composing@textedit rows #187's weaker effect check, and that check also confirmed 240 of 240 wrong pastes.
  • Cost: the plain-paste p95 went from 0.64 to 1.56 s. The p50 depends on the source: about 1.1 s under Korean, 0.6 s under Pinyin, and about 0.17 s under the Japanese sources.

Likely cause: #361's phase-1 AX probe found that in all 100 of 100 trials, Firefox's AX focus first names the earlier setup field. It moves to the target only between 35 ms before and 58 ms after the first ⌘V. The read-back's snapshot is taken after the activation and before ⌘V, so it reads the wrong field (fieldChanged) or one whose range can't be read (rangeUnreadable). This is the paste-route form of #419.

What to find out

  1. Confirm the cause. In an instrumented copy, record which element the snapshot names, and when Firefox's focus settles relative to the activation and the first ⌘V.
  2. A snapshot that reads the right field. Candidates, under Engine: in background Safari, cmd+a then type_text can lose the first typed character, both calls answering success (the key equivalent's effect trails the next call) #354's and macOS engine: background Safari on a large page can't find the focused field for type_text's read-back (text-marker route) #395's privacy rules:
  3. The budget. Explain why rangeUnreadable costs about 1 s under Korean and Pinyin, but not under the Japanese sources.

Check

In background Firefox, under each measured input source:

  • exact pastes confirm 20/20;
  • controls answer unconfirmed;
  • no other field's content appears in any reply;
  • service p95 is back near main's.

Spawned by #361. Related: #419.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    on Nov 19, 2026
  2. added 2 commits that reference this issue on Nov 19, 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:P2status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions