Backed out changeset 8d44271e5973 (bug 1445292) for c3 failures on toolkit/content/tests/chrome/test_tabbox.xul on a CLOSED TREE
authorGurzau Raul <rgurzau@mozilla.com>
Fri, 16 Mar 2018 18:24:33 +0200
changeset 408613 a930e1f75ba58c222dc578b1e9ff3a853290ae74
parent 408612 7c36968eadca498eb91c4d5a44b32e651416bcc2
child 408614 72f6a225e5e66523a6eb87ee1bf8213b137d97d7
push id100996
push userbtara@mozilla.com
push dateSat, 17 Mar 2018 10:37:43 +0000
treeherdermozilla-inbound@97160a734959 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1445292
milestone61.0a1
backs out8d44271e5973cad25b6a8b8153fe958cadaba33c
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
Backed out changeset 8d44271e5973 (bug 1445292) for c3 failures on toolkit/content/tests/chrome/test_tabbox.xul on a CLOSED TREE
toolkit/content/widgets/tabbox.xml
--- a/toolkit/content/widgets/tabbox.xml
+++ b/toolkit/content/widgets/tabbox.xml
@@ -181,36 +181,44 @@
       </method>
 
       <field name="_eventNode">this</field>
 
       <property name="eventNode" onget="return this._eventNode;">
         <setter>
           <![CDATA[
             if (val != this._eventNode) {
-              Services.els.addSystemEventListener(val, "keydown", this, false);
-              Services.els.removeSystemEventListener(this._eventNode, "keydown", this, false);
+              const nsIEventListenerService =
+                Ci.nsIEventListenerService;
+              let els = Cc["@mozilla.org/eventlistenerservice;1"]
+                          .getService(nsIEventListenerService);
+              els.addSystemEventListener(val, "keydown", this, false);
+              els.removeSystemEventListener(this._eventNode, "keydown", this, false);
               this._eventNode = val;
             }
             return val;
           ]]>
         </setter>
       </property>
 
       <constructor>
         switch (this.getAttribute("eventnode")) {
           case "parent": this._eventNode = this.parentNode; break;
           case "window": this._eventNode = window; break;
           case "document": this._eventNode = document; break;
         }
-        Services.els.addSystemEventListener(this._eventNode, "keydown", this, false);
+        let els = Cc["@mozilla.org/eventlistenerservice;1"]
+                    .getService(Ci.nsIEventListenerService);
+        els.addSystemEventListener(this._eventNode, "keydown", this, false);
       </constructor>
 
       <destructor>
-        Services.els.removeSystemEventListener(this._eventNode, "keydown", this, false);
+        let els = Cc["@mozilla.org/eventlistenerservice;1"]
+                    .getService(Ci.nsIEventListenerService);
+        els.removeSystemEventListener(this._eventNode, "keydown", this, false);
       </destructor>
     </implementation>
   </binding>
 
   <binding id="tabs"
            extends="chrome://global/content/bindings/general.xml#basecontrol">
     <resources>
       <stylesheet src="chrome://global/skin/tabbox.css"/>