Closed Bug 1052478 Opened 10 years ago Closed 1 year ago

Punctuation inside embedded object breaks word offsets

Categories

(Core :: Disability Access APIs, defect)

x86_64
Windows 8.1
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox113 --- fixed
firefox114 --- fixed
firefox115 --- fixed

People

(Reporter: Jamie, Unassigned)

References

(Blocks 2 open bugs)

Details

Str:
1. Open this: data:text/html,a<div>-</div>
2. Get the document accessible.
3. Call IAccessibleText::textAtOffset(0, IA2_TEXT_BOUNDARY_WORD).
Expected: (0, 1, "a")
Actual: (1, 2, "<embedded object>")
I'm seeing this in ATK/AT-SPI2 as well.
Blocks: orca
So, this looks like its a layout / keyboard navigation bug. starting before the a if you hit control right arrow you are told next word starts after the '-', but if the cursor is after the '-' then control left says the previous word starts just before the '-'.

This now returns (0, 0, None) for both offsets.

Fixed by TextLeafPoint, bug 1729407 (currently behind the CTW pref).

Depends on: 1782873
Severity: normal → S3

This is resolved by Cache the World, which is enabled by default in Firefox 113.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.