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

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 14996003: Disabled select element should not fire onchange event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added test and moved the checks to RenderListBox Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index fbcbd05bf207f4fc84f811297da34228cefbdf02..5767d025b444c05687f572eaa833dbe5b6765db0 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -640,8 +640,6 @@ void HTMLSelectElement::updateListBoxSelection(bool deselectOtherOptions)
void HTMLSelectElement::listBoxOnChange()
{
ASSERT(!usesMenuList() || m_multiple);
- if (isDisabledFormControl())
- return;
const Vector<HTMLElement*>& items = listItems();
« no previous file with comments | « LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html ('k') | Source/core/rendering/RenderListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698