From f4cec5f210db77bf98758bcf69830ab7fd1a674d Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Sun, 3 Aug 2025 12:51:36 +0200 Subject: [PATCH] test: Fixed startup tests not initializing l10n correctly, b=no-bug, c=common --- src/zen/common/ZenStartup.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/zen/common/ZenStartup.mjs b/src/zen/common/ZenStartup.mjs index ddaef1213..6bbadecef 100644 --- a/src/zen/common/ZenStartup.mjs +++ b/src/zen/common/ZenStartup.mjs @@ -7,7 +7,12 @@ isReady: false, - init() { + async init() { + // important: We do this to ensure that some firefox components + // are initialized before we start our own initialization. + // please, do not remove this line and if you do, make sure to + // test the startup process. + await new Promise((resolve) => resolve()); this.openWatermark(); this._initBrowserBackground(); this._changeSidebarLocation();