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

Issue 507533002: Fix to keep the selection of the text field in input element after setSelectionRange is called by d… (Closed)

Created:
6 years, 3 months ago by Miyoung Shin(g)
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, kenjibaheux, ppi, jam
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix to keep the selection of the text field in input element after setSelectionRange is called by dom events related to mouse The problem is that the selection is cleared when handling mouse release. The selection should be kept if the selection is set by setSelectionRange during handling mouse event. BUG=32865 R=yosin@chromium.org R=rbyers@chromium.org TEST=LayoutTests/fast/forms/setrangetext-within-events.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181490 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181959

Patch Set 1 #

Patch Set 2 : fix the indentation of HTML document #

Total comments: 12

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -1 line) Patch
A LayoutTests/fast/forms/setrangetext-within-events.html View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/setrangetext-within-events-expected.txt View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 38 (5 generated)
Miyoung Shin(g)
6 years, 3 months ago (2014-08-26 00:47:23 UTC) #1
yosin_UTC9
yosin@chromium.org changed reviewers: + yoichio@chromium.org, yosin@chromium.org
6 years, 3 months ago (2014-08-26 03:55:08 UTC) #2
yosin_UTC9
yoichio@, does this patch fix issue http://crbug.com/404969, Blue selection highlight for autofill data doesn't go ...
6 years, 3 months ago (2014-08-26 03:55:08 UTC) #3
Miyoung Shin(g)
On 2014/08/26 03:55:08, Yosi_UTC9 wrote: > yoichio@, does this patch fix issue http://crbug.com/404969, Blue selection ...
6 years, 3 months ago (2014-08-26 04:57:01 UTC) #4
yosin_UTC9
LGTM https://codereview.chromium.org/507533002/diff/40001/LayoutTests/fast/forms/setrangetext-within-events.html File LayoutTests/fast/forms/setrangetext-within-events.html (right): https://codereview.chromium.org/507533002/diff/40001/LayoutTests/fast/forms/setrangetext-within-events.html#newcode26 LayoutTests/fast/forms/setrangetext-within-events.html:26: } nit: Please align "}" and "else" like: ...
6 years, 3 months ago (2014-08-28 00:54:29 UTC) #5
Miyoung Shin(g)
myid.o.shin@gmail.com changed reviewers: + hayato@chromium.org, rbyers@chromium.org
6 years, 3 months ago (2014-08-28 08:33:09 UTC) #6
Miyoung Shin(g)
myid.o.shin@gmail.com changed reviewers: - hayato@chromium.org
6 years, 3 months ago (2014-08-28 08:35:46 UTC) #7
Miyoung Shin(g)
myid.o.shin@gmail.com changed reviewers: - philipj@opera.com
6 years, 3 months ago (2014-08-28 08:36:11 UTC) #8
Rick Byers
kenjibaheux@ is the expert on text selection. But this seems fairly straight forward and (assuming ...
6 years, 3 months ago (2014-08-28 18:16:41 UTC) #9
Miyoung Shin(g)
https://codereview.chromium.org/507533002/diff/60001/LayoutTests/fast/forms/setrangetext-within-events.html File LayoutTests/fast/forms/setrangetext-within-events.html (right): https://codereview.chromium.org/507533002/diff/60001/LayoutTests/fast/forms/setrangetext-within-events.html#newcode4 LayoutTests/fast/forms/setrangetext-within-events.html:4: window.onload = function() { On 2014/08/28 18:16:41, Rick Byers ...
6 years, 3 months ago (2014-08-29 14:18:52 UTC) #10
Miyoung Shin(g)
myid.o.shin@gmail.com changed reviewers: + kenjibaheux@chromium.org
6 years, 3 months ago (2014-08-29 14:24:33 UTC) #11
Miyoung Shin(g)
Patchset #5 (id:80001) has been deleted
6 years, 3 months ago (2014-08-29 14:25:16 UTC) #12
Miyoung Shin(g)
Patchset #5 (id:100001) has been deleted
6 years, 3 months ago (2014-08-29 14:27:35 UTC) #13
Rick Byers
https://codereview.chromium.org/507533002/diff/60001/LayoutTests/fast/forms/setrangetext-within-events.html File LayoutTests/fast/forms/setrangetext-within-events.html (right): https://codereview.chromium.org/507533002/diff/60001/LayoutTests/fast/forms/setrangetext-within-events.html#newcode21 LayoutTests/fast/forms/setrangetext-within-events.html:21: if (event == 'mousedown') { On 2014/08/29 14:18:52, Miyoung ...
6 years, 3 months ago (2014-08-29 15:48:05 UTC) #14
Miyoung Shin(g)
> https://codereview.chromium.org/507533002/diff/60001/LayoutTests/fast/forms/setrangetext-within-events.html#newcode39 > LayoutTests/fast/forms/setrangetext-within-events.html:39: var textfield = > document.getElementById('textfield'); > On 2014/08/29 14:18:52, Miyoung Shin(g) ...
6 years, 3 months ago (2014-08-30 05:43:05 UTC) #15
yoichio
This CL might change the mouse dragging event behavior, right? Thus, I suggest to run ...
6 years, 3 months ago (2014-09-01 01:17:18 UTC) #16
Miyoung Shin(g)
On 2014/09/01 01:17:18, yoichio wrote: > This CL might change the mouse dragging event behavior, ...
6 years, 3 months ago (2014-09-01 03:50:46 UTC) #17
Rick Byers
On 2014/09/01 03:50:46, Miyoung Shin(g) wrote: > On 2014/09/01 01:17:18, yoichio wrote: > > This ...
6 years, 3 months ago (2014-09-02 15:00:57 UTC) #18
Rick Byers
https://codereview.chromium.org/507533002/diff/140001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/507533002/diff/140001/Source/core/page/EventHandler.cpp#newcode1287 Source/core/page/EventHandler.cpp:1287: m_selectionInitiationState = HaveNotStartedSelection; Please add a comment here saying ...
6 years, 3 months ago (2014-09-02 15:39:20 UTC) #19
Miyoung Shin(g)
On 2014/09/02 15:39:20, Rick Byers wrote: > https://codereview.chromium.org/507533002/diff/140001/Source/core/page/EventHandler.cpp > File Source/core/page/EventHandler.cpp (right): > > https://codereview.chromium.org/507533002/diff/140001/Source/core/page/EventHandler.cpp#newcode1287 ...
6 years, 3 months ago (2014-09-03 07:59:44 UTC) #20
Rick Byers
On 2014/09/03 07:59:44, Miyoung Shin(g) wrote: > On 2014/09/02 15:39:20, Rick Byers wrote: > > ...
6 years, 3 months ago (2014-09-05 21:19:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/myid.o.shin@gmail.com/507533002/160001
6 years, 3 months ago (2014-09-05 21:21:37 UTC) #23
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-06 03:22:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/myid.o.shin@gmail.com/507533002/160001
6 years, 3 months ago (2014-09-06 11:51:56 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:160001) as 181490
6 years, 3 months ago (2014-09-06 12:46:03 UTC) #28
ppi
A revert of this CL (patchset #7 id:160001) has been created in https://codereview.chromium.org/548413002/ by ppi@chromium.org. ...
6 years, 3 months ago (2014-09-08 15:56:08 UTC) #29
Miyoung Shin(g)
On 2014/09/08 15:56:08, ppi wrote: > A revert of this CL (patchset #7 id:160001) has ...
6 years, 3 months ago (2014-09-12 03:32:53 UTC) #30
Miyoung Shin(g)
ppi@, jam@ When I tested org.chromium.content.browser.input.ImeTest on Android, there is still the flaky failures regardless ...
6 years, 3 months ago (2014-09-13 06:22:47 UTC) #31
ppi
+Fabrice Go ahead, but please verify that the test doesn't regress after relanding. Thanks!
6 years, 3 months ago (2014-09-13 13:35:42 UTC) #33
Fabrice (no longer in Chrome)
On 2014/09/13 13:35:42, ppi wrote: > +Fabrice > > Go ahead, but please verify that ...
6 years, 3 months ago (2014-09-13 14:19:40 UTC) #34
Miyoung Shin(g)
On 2014/09/13 14:19:40, Fabrice de Gans wrote: > On 2014/09/13 13:35:42, ppi wrote: > > ...
6 years, 3 months ago (2014-09-14 04:26:12 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/507533002/180001
6 years, 3 months ago (2014-09-14 11:53:33 UTC) #37
commit-bot: I haz the power
6 years, 3 months ago (2014-09-14 12:55:35 UTC) #38
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as 181959

Powered by Google App Engine
This is Rietveld 408576698