Bug 1163212 - The resize event should not be cancelable. r=smaug
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 27 May 2016 10:35:48 +1200
changeset 328275 a0365d37a510dca7411c6043da29992d26490ff9
parent 328274 42d2e0afa3bc00d4c559148de237794164bd0012
child 328276 c4bde82ab5934ff314072d653abd983579ea0d23
push idunknown
push userunknown
push dateunknown
reviewerssmaug
bugs1163212
milestone49.0a1
Bug 1163212 - The resize event should not be cancelable. r=smaug
widget/BasicEvents.h
--- a/widget/BasicEvents.h
+++ b/widget/BasicEvents.h
@@ -309,17 +309,21 @@ private:
       case eCompositionEventClass:
         // XXX compositionstart is cancelable in draft of DOM3 Events.
         //     However, it doesn't make sense for us, we cannot cancel
         //     composition when we send compositionstart event.
         mFlags.mCancelable = false;
         mFlags.mBubbles = true;
         break;
       default:
-        mFlags.mCancelable = true;
+        if (mMessage == eResize) {
+          mFlags.mCancelable = false;
+        } else {
+          mFlags.mCancelable = true;
+        }
         mFlags.mBubbles = true;
         break;
     }
   }
 
 protected:
   WidgetEvent(bool aIsTrusted,
               EventMessage aMessage,