DescriptionsetSelectionRange() for INPUT and TEXTAREA should not set "none" direction on non-macOS platforms.
setSelectionRange(s, e) unexpectedly called the four-argument version of HTMLTextFormControlElement::setSelectionRange() with SelectionHasNoDirection.
So it set "none" direction without EditingBehavior check.
This CL renames the implementation function of web-exposed setSelectionRange() to
setSelectionRangeForBinding(), and makes its third argument optional so that
seSelectionRange(s, e) calls it.
On non-macOS platforms, two tests in textfieldselection-setSelectionRange.html
correctly fail.
BUG=640861
Committed: https://crrev.com/9cde715f00643052484f4cb60ed0d9593b5661ca
Cr-Commit-Position: refs/heads/master@{#414306}
Patch Set 1 #
Messages
Total messages: 20 (15 generated)
|