From 5d346205fc35fb722564951ff046d83b7d2d1cc9 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Wed, 16 Apr 2025 10:56:35 +0200 Subject: [PATCH] fix: closes #7605 - Fixed compact mode not focusing on the urlbar on startup, r=common --- src/zen/common/ZenStartup.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zen/common/ZenStartup.mjs b/src/zen/common/ZenStartup.mjs index 6543c105f..f9e837d68 100644 --- a/src/zen/common/ZenStartup.mjs +++ b/src/zen/common/ZenStartup.mjs @@ -66,6 +66,11 @@ // A bit of a hack to make sure the tabs toolbar is updated. // Just in case we didn't get the right size. gZenUIManager.updateTabsToolbar(); + + // Fix for https://github.com/zen-browser/desktop/issues/7605, specially in compact mode + if (gURLBar.hasAttribute('breakout-extend')) { + gURLBar.focus(); + } }, 100); }, 0); this.closeWatermark();