fix: Fixed bookmarks not hiding when opening folders, b=closes #10612, c=common

This commit is contained in:
mr. m
2025-09-29 10:43:22 +02:00
parent a7f853e0f0
commit 32944f1548
2 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
diff --git a/browser/components/urlbar/UrlbarController.sys.mjs b/browser/components/urlbar/UrlbarController.sys.mjs
index 36e3ab4a5a153230bb488b66dda7e3e7c763ca23..81f2944b939ac0963c129f86aab0b55817349401 100644
index 36e3ab4a5a153230bb488b66dda7e3e7c763ca23..cc4ea61914a316451fa54b01a5c8c6a305e4038a 100644
--- a/browser/components/urlbar/UrlbarController.sys.mjs
+++ b/browser/components/urlbar/UrlbarController.sys.mjs
@@ -434,6 +434,8 @@ export class UrlbarController {
});
}
event.preventDefault();
+ } else {
+ } else if (!this.input.value && !(event.ctrlKey || event.altKey || event.shiftKey)) {
+ this.browserWindow.gZenUIManager.enableCommandsMode(event);
}
break;

View File

@@ -215,8 +215,10 @@ var gZenUIManager = {
!el.contains(showEvent.explicitOriginalTarget) ||
(showEvent.explicitOriginalTarget instanceof Element &&
showEvent.explicitOriginalTarget?.closest('panel')) ||
// See bug #7590: Ignore menupopup elements opening
showEvent.explicitOriginalTarget.tagName === 'menupopup'
// See bug #7590: Ignore menupopup elements opening.
// Also see #10612 for the exclusion of the zen-appcontent-navbar-wrapper
(showEvent.explicitOriginalTarget.tagName === 'menupopup' &&
el.id !== 'zen-appcontent-navbar-wrapper')
) {
continue;
}