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

Issue 120373005: OnChange event should fire if the multiple selection changes in listbox using mouse (Closed)

Created:
6 years, 11 months ago by gnana
Modified:
6 years, 8 months ago
Reviewers:
tkent, eseidel, eae, Inactive
CC:
blink-reviews, zoltan1, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

listboxdefaulteventhandler in htmlselectelement is not called when mouse is released outside if listbox is non scrollable. Hence onchange event is not fired for htmlselectelement. But when listbox is scrollable, Autoscrollcontroller is used to generate on change event. Forcing Autoscrollcontroller to be used even when listbox is not scrollable. By commenting defaulthandled for mousemove in listboxdefaulteventhandler will cause handlemousedraggedevent to be called. This will start the Autoscrollcontroller for listbox selection. Which inturn will generate the onchange event. The changes didnot cause any side effect and layout test failure. BUG=317809, 94986 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164563

Patch Set 1 #

Patch Set 2 : removing not modified file #

Patch Set 3 : Merged to trunk #

Patch Set 4 : fixed layout test fail #

Patch Set 5 : Added layout test #

Patch Set 6 : removed unnecessary blank lines in layout test #

Total comments: 8

Patch Set 7 : Applied review comments #

Patch Set 8 : removed not modified file #

Total comments: 16

Patch Set 9 : Moved layout test to fast/forms/select #

Total comments: 10

Patch Set 10 : Minor modification and incorporated review comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -6 lines) Patch
A LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -0 lines 1 comment Download
A + LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 3 comments Download
M Source/core/page/AutoscrollController.cpp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
gnana
Please have a look at this.
6 years, 11 months ago (2013-12-28 15:44:33 UTC) #1
eseidel
I don't understand what you're trying to do here. Can you please explain better in ...
6 years, 11 months ago (2013-12-28 19:56:59 UTC) #2
gnana
Thanks eric for the review. I have updated the CL description. https://codereview.chromium.org/120373005/diff/200001/LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html File LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html (right): ...
6 years, 11 months ago (2014-01-03 07:50:02 UTC) #3
tkent
https://codereview.chromium.org/120373005/diff/300004/LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html File LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html (right): https://codereview.chromium.org/120373005/diff/300004/LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html#newcode1 LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html:1: <html> I prefer putting this file in LayoutTests/fast/forms/select/ because ...
6 years, 11 months ago (2014-01-06 03:04:58 UTC) #4
gnana
Thanks! Please have a look. https://codereview.chromium.org/120373005/diff/300004/LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html File LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html (right): https://codereview.chromium.org/120373005/diff/300004/LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html#newcode1 LayoutTests/fast/events/multiselect-in-listbox-mouse-release-outside.html:1: <html> On 2014/01/06 03:04:58, ...
6 years, 11 months ago (2014-01-06 09:15:24 UTC) #5
tkent
https://codereview.chromium.org/120373005/diff/350001/LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html File LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html (right): https://codereview.chromium.org/120373005/diff/350001/LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html#newcode14 LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html:14: var input = document.getElementById('listBoxInput'); Using a variable name |input| ...
6 years, 11 months ago (2014-01-06 23:33:21 UTC) #6
gnana
Thanks tkent. Please have a look. https://codereview.chromium.org/120373005/diff/350001/LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html File LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html (right): https://codereview.chromium.org/120373005/diff/350001/LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html#newcode14 LayoutTests/fast/forms/select/multiselect-in-listbox-mouse-release-outside.html:14: var input = ...
6 years, 11 months ago (2014-01-07 08:35:18 UTC) #7
tkent
lgtm
6 years, 11 months ago (2014-01-07 09:41:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/120373005/410001
6 years, 11 months ago (2014-01-07 09:56:10 UTC) #9
commit-bot: I haz the power
Change committed as 164563
6 years, 11 months ago (2014-01-07 11:43:12 UTC) #10
Inactive
https://codereview.chromium.org/120373005/diff/410001/Source/core/html/HTMLSelectElement.cpp File Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/120373005/diff/410001/Source/core/html/HTMLSelectElement.cpp#newcode1280 Source/core/html/HTMLSelectElement.cpp:1280: bool dragSelection = false; I don't understand how the ...
6 years, 8 months ago (2014-04-20 00:43:41 UTC) #11
Inactive
6 years, 8 months ago (2014-04-20 01:22:36 UTC) #12
Message was sent while issue was closed.
I uploaded a partial revert in https://codereview.chromium.org/242113014/

Powered by Google App Engine
This is Rietveld 408576698