gh-13258: Implement new loading indicator (gh-13259)

This commit is contained in:
mr. m
2026-04-15 16:49:52 +02:00
committed by GitHub
parent 767dfce556
commit c128b79723
11 changed files with 307 additions and 32 deletions

View File

@@ -57,6 +57,7 @@ class ZenStartup {
gZenWorkspaces.init();
setTimeout(() => {
gZenUIManager.init();
this.#initUIComponents();
this.#checkForWelcomePage();
}, 0);
} catch (e) {
@@ -161,6 +162,16 @@ class ZenStartup {
}
}
#initUIComponents() {
const kUIComponents = ["ZenProgressBar"];
for (let component of kUIComponents) {
const module = ChromeUtils.importESModule(
"resource:///modules/zen/ui/" + component + ".sys.mjs"
);
new module[component](window);
}
}
#checkForWelcomePage() {
const kWelcomeScreenSeenPref = "zen.welcome-screen.seen";
if (Services.env.get("MOZ_HEADLESS")) {