Closed Bug 1766560 Opened 2 years ago Closed 2 years ago

[CTW] First line start of a leaf is ignored when fetching the next line start

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

Details

(Whiteboard: [ctw-m2])

Attachments

(1 file)

STR:

  1. Open this test case:
    data:text/html,<div contenteditable style="width: 2ch; word-break: break-word;"><span>a</span>bc
  2. Query the HyperText line offsets at offset 0.
    • Expected: (0, 2, "ab")
    • Actual: (0, 3, "abc")

This is due to a silly logic error in FindLineStartSameRemoteAcc.

The code previously returned failure for array index 0, but it did this for both movement directions.
It should only do this for eDirPrevious, since we decrement index in that case.

Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a901a6c26367
Don't ignore the first line start of a RemoteAccessible when retrieving the next line. r=morgan
Flags: needinfo?(jteh)
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc5eb6e5dc92
Don't ignore the first line start of a RemoteAccessible when retrieving the next line. r=morgan
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: