Skip to content

macOS engine: background Safari on a large page can't find the focused field for type_text's read-back (text-marker route) #395

Closed

Description

@SSFSKIM

Problem

#354's type_text read-back needs the focused field. In background Safari with no key sent first, Safari answers nothing for AXFocusedUIElement (the app's, the window's, and the web area's). #354 ships a bounded walk (window → web area → the one element with AXFocused == true, capped at 200 nodes) that finds the field on small pages: 20/20 plain and 20/20 secret on the fixture.

On a large page (1,600 AX children), the walk hits its bound 20/20 and claims nothing. The answer is then noFocusedElement: no confirmation, never a wrong one. The text did land correctly 20/20. Most real pages are larger than 200 nodes, so in background Safari on a real site, type_text mostly answers noFocusedElement.

Measured in #354's final run (44031200818, after head a7529ee): the walk took 24/29 ms p50/p95 to give up. WebKit's text-marker route (selected marker range → element → one AXParent → the AXTextField) found the field 20/20 on the same page.

What to build

The text-marker route as the background Safari fallback, before or instead of the walk.

Its own privacy design comes first

Check

In background Safari, a large page (1,000+ nodes): plain and secret type_text confirm 20/20, with 0 wrong successes, 0 privacy violations, and the secret audits identical with and without a secret.

Spawned by #354 (ruling 765).

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    on Nov 17, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 18, 2026
  3. SSFSKIM commented on Nov 18, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Taken by cursor235: privacy probe first (probe/395-marker from probe/354-measure), build on fix/395-safari-marker-route after #411 lands

  4. added 6 commits that reference this issue on Nov 18, 2026
  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 18, 2026
  6. SSFSKIM commented on Nov 18, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #417 open: marker route, qualified 44308992433 + 44322575578, ci-gate GREEN 44326134389

  7. SSFSKIM commented on Nov 18, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] doperpowers:reviewer-high, 2 rounds on f2c30fc..0e9f4af (r1: 4 findings, 3 fixed + ancestor classification dismissed, ownership check added; r2: 2 fixed). Qualification kits reviewed by doperpowers:reviewer-medium. Verdict: converged. Head 4170683 adds evidence only.

  8. removed
    status:in-review
    on Nov 18, 2026
  9. SSFSKIM commented on Nov 18, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #417 (cua 0.28.15)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions