Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Issue 2274103002: setSelectionRange() for INPUT and TEXTAREA should not set "none" direction on non-macOS platforms. (Closed)

Created:
4 years, 3 months ago by tkent
Modified:
4 years, 3 months ago
Reviewers:
yosin_UTC9
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, haraken, je_julie, kinuko+watch, nektarios, nektar+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

setSelectionRange() 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)
tkent
yosin@, would you review this please?
4 years, 3 months ago (2016-08-25 02:26:06 UTC) #11
yosin_UTC9
lgtm BTW, when INPUT/TEXTAREA has focus on non-macOS, FrameSelection::setSelection() always sets directional.
4 years, 3 months ago (2016-08-25 04:10:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2274103002/20001
4 years, 3 months ago (2016-08-25 04:12:03 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 3 months ago (2016-08-25 04:16:08 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 04:18:29 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9cde715f00643052484f4cb60ed0d9593b5661ca
Cr-Commit-Position: refs/heads/master@{#414306}

Powered by Google App Engine
This is Rietveld 408576698