Repository navigation
fix: wrong line number and range from the macOS accessibility API in text fields - #53428
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
September 2, 2026 21:42
ckerr
approved these changes
Sep 3, 2026
|
Release Notes Persisted
|
3 tasks done
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Cherry-picks Chromium CL 8092671 (crbug.com/423048796, shipped in Chromium 152 / Electron 44) to 43-x-y:
AXLineForIndexusedlower_boundover the line starts, so any caret not at the start of a line mapped to the following line. Nowupper_bound - 1, with bounds checks.AXRangeForLineon the legacy parameterized-attribute path returned nil for every line except 0; it now forwards every line index toaccessibilityRangeForLine:.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
npm testpassesRelease Notes
Notes: Fixed VoiceOver Braille displays showing the wrong line in multi-line text fields on macOS:
AXLineForIndexandAXRangeForLinenow return the line containing the caret.