Bug 1842187 a=dmeehan

Original Revision: https://phabricator.services.mozilla.com/D223948

Differential Revision: https://phabricator.services.mozilla.com/D228631
This commit is contained in:
Gijs Kruitbosch 2024-11-13 13:36:49 +00:00
parent 92caec5173
commit 3c412e90e2

View file

@ -171,7 +171,10 @@ DownloadPrompter.prototype = {
"download-ui-file-executable-security-warning",
{ executable: PathUtils.filename(path) }
);
return this._prompter.confirm(title, message);
let flags =
Ci.nsIPrompt.BUTTON_DELAY_ENABLE | Ci.nsIPrompt.STD_OK_CANCEL_BUTTONS;
let nulls = Array(4).fill(null);
return 0 == this._prompter.confirmEx(title, message, flags, ...nulls, {});
},
/**