Bug 1680798 - Assign forward selection in Select() before bug 1541454 r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D98823
This commit is contained in:
Kagami Sascha Rosylight
2020-12-05 07:47:50 +00:00
parent 24c18c473d
commit ff3887e067
5 changed files with 22 additions and 9 deletions

View File

@@ -3048,8 +3048,10 @@ void HTMLInputElement::Select() {
// Directly call TextControlState::SetSelectionRange because
// HTMLInputElement::SetSelectionRange only applies to fewer types
// TODO(krosylight): This should pass eNone per the spec, but we don't support
// it yet. See bug 1541454.
state->SetSelectionRange(0, UINT32_MAX,
nsITextControlFrame::SelectionDirection::eNone,
nsITextControlFrame::SelectionDirection::eForward,
IgnoredErrorResult());
}