Bug 1212116, dispatch wheel events on disabled form controls, r=bz
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Fri, 26 Feb 2016 23:04:34 +0200
changeset 322223 c728ed2a0ba979418ce9ea98cfb45b55967cc7cb
parent 322222 80b03cb5ec4f93e53853dfa9f6e0daab068a6098
child 322224 53003fb5d81a7f1654a622e922f225da3b2ceb2e
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1212116
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1212116, dispatch wheel events on disabled form controls, r=bz
dom/html/nsGenericHTMLElement.cpp
--- a/dom/html/nsGenericHTMLElement.cpp
+++ b/dom/html/nsGenericHTMLElement.cpp
@@ -2487,16 +2487,19 @@ nsGenericHTMLFormElement::IsElementDisab
     case eMouseOut:
     case eMouseEnter:
     case eMouseLeave:
     case ePointerMove:
     case ePointerOver:
     case ePointerOut:
     case ePointerEnter:
     case ePointerLeave:
+    case eWheel:
+    case eLegacyMouseLineOrPageScroll:
+    case eLegacyMousePixelScroll:
       return false;
     default:
       break;
   }
 
   bool disabled = IsDisabled();
   if (!disabled && aFrame) {
     const nsStyleUserInterface* uiStyle = aFrame->StyleUserInterface();