From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/prompts/src/CommonDialog.sys.mjs | 4 ---- toolkit/components/prompts/src/Prompter.sys.mjs | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'toolkit/components/prompts/src') diff --git a/toolkit/components/prompts/src/CommonDialog.sys.mjs b/toolkit/components/prompts/src/CommonDialog.sys.mjs index 22b6921917..a0812aa8ec 100644 --- a/toolkit/components/prompts/src/CommonDialog.sys.mjs +++ b/toolkit/components/prompts/src/CommonDialog.sys.mjs @@ -137,10 +137,6 @@ CommonDialog.prototype = { commonDialogEl.ownerDocument.title = title; } - if (this.ui.spinnerContainer && this.args.showSpinner) { - this.ui.spinnerContainer.hidden = false; - } - // Set button labels and visibility // // This assumes that button0 defaults to a visible "ok" button, and diff --git a/toolkit/components/prompts/src/Prompter.sys.mjs b/toolkit/components/prompts/src/Prompter.sys.mjs index ce17f1b457..a0b5edca2f 100644 --- a/toolkit/components/prompts/src/Prompter.sys.mjs +++ b/toolkit/components/prompts/src/Prompter.sys.mjs @@ -1058,7 +1058,7 @@ class ModalPrompter { closed = true; }); Services.tm.spinEventLoopUntilOrQuit( - "prompts/Prompter.jsm:openPromptSync", + "prompts/Prompter.sys.mjs:openPromptSync", () => closed ); } @@ -1474,7 +1474,8 @@ class ModalPrompter { } if (flags & Ci.nsIPrompt.SHOW_SPINNER) { - args.showSpinner = true; + // When bug 1879550 is fixed, add a higher-res version here + args.headerIconURL = "chrome://global/skin/icons/loading.png"; } if (this.async) { -- cgit v1.2.3