From 562e6e5c3adf54e9920887f151bccf4c6024d260 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Wed, 29 Apr 2026 20:31:46 +0200 Subject: [PATCH] gh-13488: Fixed auto hide not working after installing an extension (gh-13498) --- src/toolkit/content/widgets/panel-js.patch | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/toolkit/content/widgets/panel-js.patch b/src/toolkit/content/widgets/panel-js.patch index 011e87349..276e72727 100644 --- a/src/toolkit/content/widgets/panel-js.patch +++ b/src/toolkit/content/widgets/panel-js.patch @@ -1,10 +1,20 @@ diff --git a/toolkit/content/widgets/panel.js b/toolkit/content/widgets/panel.js -index dc3e34847f1b6dfd58f5e036fd7d714ef51c1380..8d8e370ca8549d8208669d4fb344fc8abb54fadd 100644 +index dc3e34847f1b6dfd58f5e036fd7d714ef51c1380..e88ab308c5eba01ccf82a0d1b9477555fcb9a5de 100644 --- a/toolkit/content/widgets/panel.js +++ b/toolkit/content/widgets/panel.js -@@ -137,6 +137,9 @@ +@@ -136,7 +136,19 @@ + let anchorRoot = this.anchorNode.closest("toolbarbutton, .anchor-root") || this.anchorNode; ++ let toolbox = anchorRoot.closest("#navigator-toolbox"); ++ if (toolbox) { ++ // Disable transitions for now, see gh-11667 ++ toolbox.style.transition = "none"; ++ toolbox.setAttribute("zen-compact-mode-active", "true"); ++ anchorRoot.ownerGlobal.setTimeout(() => { ++ toolbox.style.transition = ""; ++ }, 0); ++ } anchorRoot.setAttribute("open", "true"); + if (anchorRoot.closest("#urlbar") && window.gURLBar) { + gURLBar.setAttribute("has-popup-open", "true"); @@ -12,7 +22,7 @@ index dc3e34847f1b6dfd58f5e036fd7d714ef51c1380..8d8e370ca8549d8208669d4fb344fc8a } if (this.getAttribute("animate") != "false") { -@@ -183,6 +186,9 @@ +@@ -183,6 +195,9 @@ this.anchorNode.closest("toolbarbutton, .anchor-root") || this.anchorNode; anchorRoot.removeAttribute("open");