Skip to content

fix: wrong line number and range from the macOS accessibility API in text fields - #53428

Merged
MarshallOfSound merged 1 commit into
43-x-yfrom
fix/mac-ax-line-for-index-43-x-y
Sep 3, 2026
Merged

MarshallOfSound merged 1 commit into
43-x-yfrom
fix/mac-ax-line-for-index-43-x-y

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Description of Change

Cherry-picks Chromium CL 8092671 (crbug.com/423048796, shipped in Chromium 152 / Electron 44) to 43-x-y:

  • AXLineForIndex used lower_bound over the line starts, so any caret not at the start of a line mapped to the following line. Now upper_bound - 1, with bounds checks.
  • AXRangeForLine on the legacy parameterized-attribute path returned nil for every line except 0; it now forwards every line index to accessibilityRangeForLine:.

Only the product change is carried; the upstream browsertest and its data files are not built by Electron. Applied cleanly against 150.0.7871.250.

Closes #53403

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • relevant documentation is changed or added

Release Notes

Notes: Fixed VoiceOver Braille displays showing the wrong line in multi-line text fields on macOS: AXLineForIndex and AXRangeForLine now return the line containing the caret.

…text fields

Cherry-pick of https://chromium-review.googlesource.com/c/chromium/src/+/8092671
(Chromium 152). AXLineForIndex returned the following line for any caret not
at a line start, and AXRangeForLine returned nothing for lines other than 0,
which left Braille displays showing the wrong line in multi-line text fields.
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner September 2, 2026 21:41
@MarshallOfSound MarshallOfSound added semver/patch backwards-compatible bug fixes 43-x-y labels Sep 2, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Sep 2, 2026
@MarshallOfSound MarshallOfSound added backport-check-skip Skip trop's backport validity checking backport This is a backport PR and removed backport This is a backport PR labels Sep 2, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Sep 2, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 2, 2026 21:42
@MarshallOfSound
MarshallOfSound merged commit ba02ddb into 43-x-y Sep 3, 2026
126 checks passed
@MarshallOfSound
MarshallOfSound deleted the fix/mac-ax-line-for-index-43-x-y branch September 3, 2026 00:19
@release-clerk

release-clerk Bot commented Sep 3, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed VoiceOver Braille displays showing the wrong line in multi-line text fields on macOS: AXLineForIndex and AXRangeForLine now return the line containing the caret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants