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 33389 c79237b13f9a
parent 33388 e1982e53702a
child 33390 e50aae192485
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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');"