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

Issue 14996003: Disabled select element should not fire onchange event. (Closed)

Created:
7 years, 7 months ago by yael.aharon
Modified:
7 years, 7 months ago
Reviewers:
tkent, yael.aharon1
CC:
blink-reviews, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Disabled select element should not fire onchange event. After http://trac.webkit.org/changeset/140286, select elements can scroll whether they are disabled or not. While they scroll, they also change the selected item. This patch allows the select element to scroll, but does not change the selection if the select element is disabled. BUG=215494 TEST=fast/forms/select/listbox-disabled-no-autoscroll.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149951

Patch Set 1 #

Patch Set 2 : Added test and moved the checks to RenderListBox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -2 lines) Patch
A LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html View 1 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderListBox.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yael.aharon1
Can you please review? thanks
7 years, 7 months ago (2013-05-07 22:25:50 UTC) #1
tkent
We should revert your previous change in HTMLSelectElement::listBoxOnChange. > TEST=fast/forms/select/listbox-disabled-scroll-no-onchange.html The test should be updated ...
7 years, 7 months ago (2013-05-07 22:35:29 UTC) #2
yael.aharon1
On 2013/05/07 22:35:29, tkent wrote: > We should revert your previous change in HTMLSelectElement::listBoxOnChange. > ...
7 years, 7 months ago (2013-05-07 23:07:00 UTC) #3
tkent
listBoxOnChange is called after status update by user actions, and shouldn't be called for disabled ...
7 years, 7 months ago (2013-05-07 23:37:48 UTC) #4
yael.aharon1
On 2013/05/07 22:35:29, tkent wrote: > We should revert your previous change in HTMLSelectElement::listBoxOnChange. > ...
7 years, 7 months ago (2013-05-08 02:33:25 UTC) #5
yael.aharon1
I moved the check for isDisabledFormControl() to RenderListBox, so its checks if the select is ...
7 years, 7 months ago (2013-05-08 03:30:27 UTC) #6
tkent
lgtm. Thank you!
7 years, 7 months ago (2013-05-08 03:57:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yael.aharon@intel.com/14996003/6001
7 years, 7 months ago (2013-05-08 11:34:52 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-08 12:28:47 UTC) #9
Message was sent while issue was closed.
Change committed as 149951

Powered by Google App Engine
This is Rietveld 408576698