Closed Bug 1725323 Opened 3 years ago Closed 3 years ago

Put caret to same position as Blink

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Our HTMLEditor's behavior to put caret at first time of getting focus is a little bit different from Blink. Let's align it for Blink.

WSRunScanner::ScanNextVisibleNodeOrBlockBoundary() is designed for scanning
editable content so that it's wrong to use it for scanning first editable leaf
node.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/c862c1a89dc7 Make `HTMLEditor::MaybeCollapseSelectionAtFirstEditableNode()` not use `WSRunScanner::ScanNextVisibleNodeOrBlockBoundary()` for searching editable content r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/30020 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: