commit d0dcd939dc6871b3792302a65deb81b2d45a6620
parent ca4be57478b789a7e48c259cf8737077aca7d8c2
Author: Nikki Sharpley <nsharpley@mozilla.com>
Date: Wed, 5 Nov 2025 16:15:52 +0000
Bug 1995687 - Fix perma failing browser/base/content/test/performance/browser_tabclose.js r=florian
Differential Revision: https://phabricator.services.mozilla.com/D271250
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/browser/base/content/test/performance/head.js b/browser/base/content/test/performance/head.js
@@ -503,8 +503,10 @@ async function recordFrames(testPromise, win = window) {
}
// How many identical pixels to accept between 2 rects when deciding to merge
-// them.
-const kMaxEmptyPixels = 3;
+// them. This needs to be at least as big as the size of the margin between 2
+// tabs so 2 consecutive tabs being repainted at once are counted as a single
+// changed rect.
+const kMaxEmptyPixels = 4;
function compareFrames(frame, previousFrame) {
// Accessing the Math global is expensive as the test executes in a
// non-syntactic scope. Accessing it as a lexical variable is enough