Bug 275870
| Summary: | AX: lineTextMarkerRangeForTextMarker fails on first character of line in Google Docs | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dominic Mazzoni <dm_mazzoni> |
| Component: | Accessibility | Assignee: | Dominic Mazzoni <dm_mazzoni> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | andresg_22, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | All | ||
| OS: | All | ||
Dominic Mazzoni
I created this minimal repro:
<div id="textcontrol" contenteditable="true">
First line of text
<span contenteditable="false"><br></span>
Second line of text
<span contenteditable="false"><br></span>
Third line of text
<span contenteditable="false"><br></span>
Fourth line of text
</div>
If you arrow up and down this text with VoiceOver on, the correct line is not announced when you're on the first character of a line. At any other character index it works fine. The API that's failing is lineTextMarkerRangeForTextMarker, it's returning a range of length 0 or 1 when the marker is at the beginning of the line.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/130529132>
Dominic Mazzoni
Pull request: https://github.com/WebKit/WebKit/pull/30196
EWS
Committed 280426@main (69bf3ef0cfdc): <https://commits.webkit.org/280426@main>
Reviewed commits have been landed. Closing PR #30196 and removing active labels.