Backed out 1 changesets (bug 1417600) for failing browser/components/customizableui/test/browser_972267_customizationchange_events.js r=backout on a CLOSED TREE
authorAndreea Pavel <apavel@mozilla.com>
Fri, 17 Nov 2017 12:51:12 +0200
changeset 436965 c9e9651562d3166e3d4f012b4dd8a8622cdbd4a2
parent 436964 2de93d419be11b52a23b233ef5f55251c85fad86
child 436966 500c60ee975802e1ce70346c4c9683e12471a24d
push id117
push userfmarier@mozilla.com
push dateTue, 28 Nov 2017 20:17:16 +0000
reviewersbackout
bugs1417600
milestone59.0a1
backs out04dac3301ecdea203603c8876f6bcb06cd6bca86
Backed out 1 changesets (bug 1417600) for failing browser/components/customizableui/test/browser_972267_customizationchange_events.js r=backout on a CLOSED TREE Backed out changeset 04dac3301ecd (bug 1417600)
browser/components/customizableui/CustomizeMode.jsm
--- a/browser/components/customizableui/CustomizeMode.jsm
+++ b/browser/components/customizableui/CustomizeMode.jsm
@@ -603,22 +603,19 @@ CustomizeMode.prototype = {
       }
 
       function resolveAnimationPromise() {
         animationNode.removeEventListener("animationend", cleanupWidgetAnimationEnd);
         animationNode.removeEventListener("customizationending", cleanupCustomizationExit);
         resolve();
       }
 
-      // Wait for a style flush to ensure we do start the animation.
-      BrowserUtils.promiseLayoutFlushed(this.document, "style", () => {
-        animationNode.classList.add("animate-out");
-        animationNode.ownerGlobal.gNavToolbox.addEventListener("customizationending", cleanupCustomizationExit);
-        animationNode.addEventListener("animationend", cleanupWidgetAnimationEnd);
-      });
+      animationNode.classList.add("animate-out");
+      animationNode.ownerGlobal.gNavToolbox.addEventListener("customizationending", cleanupCustomizationExit);
+      animationNode.addEventListener("animationend", cleanupWidgetAnimationEnd);
     });
   },
 
   async addToToolbar(aNode) {
     aNode = this._getCustomizableChildForNode(aNode);
     if (aNode.localName == "toolbarpaletteitem" && aNode.firstChild) {
       aNode = aNode.firstChild;
     }