commit e414ad07fefa4125ba4bb412350d998725fee064
parent 5ffd4fafff85925846643dbb42b2a18957ee1e3a
Author: Stephen A Pohl <spohl@mozilla.com>
Date: Sat, 6 Dec 2025 03:47:38 +0000
Bug 1273536: Ensure that the elevation required update dialog isn't hidden behind browser windows on macOS. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D275020
Diffstat:
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/toolkit/mozapps/update/UpdateService.sys.mjs b/toolkit/mozapps/update/UpdateService.sys.mjs
@@ -3275,7 +3275,22 @@ export class UpdateService {
let uri = "chrome://mozapps/content/update/updateElevation.xhtml";
let features =
"chrome,centerscreen,resizable=no,titlebar,toolbar=no,dialog=no";
- Services.ww.openWindow(null, uri, "Update:Elevation", features, null);
+
+ // The following timeout is intended to make the elevation dialog
+ // appear on top of any browser windows after startup. In the past,
+ // this dialog would frequently be displayed first, then getting
+ // obscured by browser windows. The timeout period is arbitrary and
+ // may be adjusted, but this seemed to work well during initial
+ // testing. See bug 1273536 for more info.
+ lazy.setTimeout(() => {
+ Services.ww.openWindow(
+ null,
+ uri,
+ "Update:Elevation",
+ features,
+ null
+ );
+ }, 2000);
}
}
} else if (