commit 721b1c270b36d869b871fe78269859a33f58b16e
parent 89a700447e587357398998a6d5c4c61b800f8f2b
Author: Sam Foster <sfoster@mozilla.com>
Date: Thu, 4 Dec 2025 23:38:20 +0000
Bug 2003601 - Engage prefers-reduced-motion to avoid the opacity transition as the window becomes active. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D275137
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/browser/base/content/test/performance/browser_windowopen.js b/browser/base/content/test/performance/browser_windowopen.js
@@ -17,6 +17,12 @@ const EXPECTED_REFLOWS = [
*/
];
+add_setup(async function setup() {
+ SpecialPowers.pushPrefEnv({
+ set: [["ui.prefersReducedMotion", 1]],
+ });
+});
+
/*
* This test ensures that there are no unexpected
* uninterruptible reflows or flickering areas when opening new windows.