commit d4456d810664a2a13a871a68e5323522a78c1131
parent ee56bb811043767d6740716b6b361077a56a74ef
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Sun, 7 Dec 2025 17:22:59 +0000
Bug 2002232 - Use xul-window-visible for macOS first paint measurements. r=florian
My previous patch tweaked the widget-first-paint notification to the
event loop because it's not safe to run script from there generally.
Seems worth being consistent with Windows.
Differential Revision: https://phabricator.services.mozilla.com/D274251
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/browser/components/StartupRecorder.sys.mjs b/browser/components/StartupRecorder.sys.mjs
@@ -24,15 +24,11 @@ XPCOMUtils.defineLazyPreferenceGetter(
false
);
-let firstPaintNotification = "widget-first-paint";
+let firstPaintNotification = "xul-window-visible";
// On Linux widget-first-paint fires much later than expected and
// xul-window-visible fires too early for currently unknown reasons.
if (AppConstants.platform == "linux") {
firstPaintNotification = "document-shown";
-} else if (
- Services.prefs.getBoolPref("browser.startup.preXulSkeletonUI", false)
-) {
- firstPaintNotification = "xul-window-visible";
}
let win, canvas;