Bug 1257790 - Don't propagate dragstart for mouse events originating in remote browsers. r=felipe
authorBlake Kaplan <mrbkap@gmail.com>
Tue, 29 Mar 2016 14:10:40 -0700
changeset 316673 9d94aae8e4f3771dfc853af049b13cba6e7a1ca7
parent 316672 6e62a97e4c759e4339e29b3c4ebfd099a0e70f99
child 316674 3e7beec40c330e22c756cda7a7ed22cef6433aa3
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs1257790
milestone48.0a1
Bug 1257790 - Don't propagate dragstart for mouse events originating in remote browsers. r=felipe
toolkit/content/widgets/remote-browser.xml
--- a/toolkit/content/widgets/remote-browser.xml
+++ b/toolkit/content/widgets/remote-browser.xml
@@ -542,12 +542,22 @@
               }
             }
             this._remoteWebNavigationImpl.canGoBack = false;
             this._remoteWebNavigationImpl.canGoForward = false;
           ]]>
         </body>
       </method>
     </implementation>
+    <handlers>
+      <handler event="dragstart">
+      <![CDATA[
+        // If we're a remote browser dealing with a dragstart, stop it
+        // from propagating up, since our content process should be dealing
+        // with the mouse movement.
+        event.stopPropagation();
+      ]]>
+      </handler>
+    </handlers>
 
   </binding>
 
 </bindings>