Bug 1521277 - Port bug 1241885: Remove reference to WindowDraggingUtils.jsm, take 2. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sat, 19 Jan 2019 09:43:30 +0100
changeset 34243 c79237b13f9acde0e0a1e7f5d1a18492bc9d3858
parent 34242 e1982e53702ac3bb4bc63b159986c6f89ee2d998
child 34244 e50aae1924854cc3db1211f564c1531bc633b086
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersbustage-fix
bugs1521277, 1241885
Bug 1521277 - Port bug 1241885: Remove reference to WindowDraggingUtils.jsm, take 2. rs=bustage-fix DONTBUILD
common/bindings/toolbar.xml
--- a/common/bindings/toolbar.xml
+++ b/common/bindings/toolbar.xml
@@ -495,34 +495,16 @@
   </binding>
 
   <binding id="toolbar-drag"
 #ifdef MOZ_SUITE
            extends="chrome://communicator/content/bindings/toolbar.xml#toolbar">
 #else
            extends="chrome://messenger/content/toolbar.xml#toolbar">
 #endif
-    <implementation>
-      <field name="_dragBindingAlive">true</field>
-      <constructor><![CDATA[
-        if (!this._draggableStarted) {
-          this._draggableStarted = true;
-          try {
-            let tmp = {};
-            ChromeUtils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
-            let draggableThis = new tmp.WindowDraggingElement(this);
-            draggableThis.mouseDownCheck = function(e) {
-              // Don't move while customizing.
-              return this._dragBindingAlive &&
-                     this.getAttribute("customizing") != "true";
-            };
-          } catch (e) {}
-        }
-      ]]></constructor>
-    </implementation>
   </binding>
 
   <binding id="menubar" role="xul:menubar" display="xul:menubar">
     <implementation>
        <field name="_active">false</field>
        <field name="_statusbar">null</field>
        <field name="_originalStatusText">null</field>
        <property name="statusbar" onget="return this.getAttribute('statusbar');"