github web-platform-tests/wpt merge_pr_48749

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
4 months ago

Make the delete handlers of HTMLEditor guarantee that the point is in content node at calling `EnsureNoFollowingUnnecessaryLineBreak

The point may not be set if the selection move is prevented or not suggested.
Therefore, it should check the caret position before calling
EnsureNoFollowingUnnecessaryLineBreak. On the other hand,
HandleDeleteCollapsedSelectionAtWhiteSpaces should use Selection instead
if caret position is not suggested. It should be handled in bug 1925424.

Differential Revision: https://phabricator.services.mozilla.com/D226092

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1925331
gecko-commit: 00271a7486f0a3874bdf784d2f876e552115d285
gecko-reviewers: m_kato

Don't miss a new wpt release

NewReleases is sending notifications on new releases.