Skip to content

macOS engine: Chrome's AXEnhancedUserInterface is written but never released, because its -25208 answer counts as a failed write, so Chrome's full accessibility mode and window animations outlive cua #292

Closed

Description

@SSFSKIM

Problem

cua's macOS engine turns on Chrome's full accessibility mode and never turns it off. That mode stays for the life of the Chrome process, against the engine's own release rule (Enablement.swift's header: the engine "releases what it set ... a web app left in full-accessibility mode after cua is done is interference (A3)").

#288's hosted spike (probe/288-hosted, runs https://github.com/SSFSKIM/cua/actions/runs/42161269408 and https://github.com/SSFSKIM/cua/actions/runs/42162367095; Chrome for Testing 156 on macOS 26.6.2, two reps alike) found the cause.

  • Chrome lists AXEnhancedUserInterface, not AXManualAccessibility. Chromium's source has no AXManualAccessibility at all; it is Electron's attribute. So enablementAttribute picks AXEnhancedUserInterface (EUI) for Chrome.
  • Chrome answers that write with -25208, yet acts on it. Chrome's application class (chrome/browser/chrome_browser_application_mac.mm L433–472) debounces it: after 2 s it turns on complete mode and the screen-reader flag. The attribute then reads true.
  • The engine treats -25208 as a failed write (enableReporting: guard written == .success), so it never owns the attribute and never writes it back. Measured: EUI still read true, with complete mode on, after the connection closed, after the engine exited on SIGTERM, and 3 s later.
  • The person's desktop is changed while that holds. With EUI true, a scripted move or resize of Chrome's window animates: 3–5 frames, settling in 80–156 ms, against 2 frames and 10–90 ms without it. Chrome also runs its screen-reader mode, with inline text boxes, for the whole browser process.
  • Writing EUI false removes complete mode within 4–150 ms.

#282's and #283's texts, and the observation's enablementWriteError, describe the -25208 as the AXManualAccessibility write failing. It is the EUI write, and it takes effect.

Intent

Own and release what the engine turned on: an EUI write that answers -25208 counts as set and owned when the attribute then reads true, so the release at the last observing connection's close (and at shutdown) writes it back to false. Keep the A3 rule that a value that read true before the engine's write is not the engine's.

Constraints

Success criteria

  • Unit tests: a write answering -25208, then reading true, is owned and released; a value that read true before is not.
  • A hosted check: after the last connection closes, Chrome's EUI reads false, complete mode is gone (a checkbox loses AXPress), and the window moves without animation.

Activity

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

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: taken with #288 in one PR (design session ecc2143d)

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 6, 2026
  4. SSFSKIM commented on Nov 6, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR 295

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #295 (0.25.0)

  7. added 2 commits that reference this issue on Nov 8, 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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions