Closed Bug 1731005 Opened 3 years ago Closed 3 years ago

HTMLEditor::GetActiveEditingHost() does not return editing host if selection is collapsed in `<input>`

Categories

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

defect

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

If we flush pending notifications before calling execCommand in insert-*-in-void-element.tentative.html, HTMLEditor does not work because GetActiveEditingHost() returns nullptr. This is wrong because Selection cannot cross native anonymous subtree boundaries and the selection collapsed in <input> element is valid. Therefore, it should not check whether the content has independent selection or not.

If we flush pending notifications before calling execCommand in
insert-*-in-void-element.tentative.html, HTMLEditor does not work because
GetActiveEditingHost() returns nullptr. This is wrong because Selection
cannot cross native anonymous subtree boundaries and the selection collapsed in
<input> element is valid. Therefore, it should not check whether the content
has independent selection or not.

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/149a7c7573f2
HTMLEditor::GetActiveEditingHost() does not return editing host if selection is collapsed in `<input>` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/30883 for changes under testing/web-platform/tests
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: