Skip to content

Engine: place the caret at the clicked character in background Firefox textareas, selection first (Gecko route) #346

Open

Description

@SSFSKIM

The gap

In background Firefox, the engine's Gecko route (#315) focuses a textarea but leaves the caret at offset 0. It answers honestly: focused, with no "placed" claim. So a click inside the text doesn't place the caret at the clicked character.

#341's direction measurement (kit probe/341-measure 506ddda, run https://github.com/SSFSKIM/cua/actions/runs/42568677106) found that a raw AXSelectedTextRange {offset, 0} written before focus placed the caret correctly in 35 of 35 Firefox cells. In Firefox, focus scrolls only overflow-auto textareas.

Intent

Place the caret at the clicked character in Firefox textareas the way #341 does for Chromium: compute the offset from the character boxes, write the selection before any AXFocused, and read back focus and selection.

Constraints

Success criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions