diff --git a/browser/components/customizableui/CustomizeMode.jsm b/browser/components/customizableui/CustomizeMode.jsm index 900ef9dcb78b..81af1fc465d4 100644 --- a/browser/components/customizableui/CustomizeMode.jsm +++ b/browser/components/customizableui/CustomizeMode.jsm @@ -608,12 +608,9 @@ CustomizeMode.prototype = { 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); }); },