Bug 1633340 - Part 7: Request even longer timeout for ETP tests in Fission. r=baku
authorTim Huang <tihuang@mozilla.com>
Wed, 20 May 2020 13:48:29 +0000
changeset 531242 51a737bb9ba70d63437386c99ebe728f6051f4a7
parent 531241 ec7583769b9cb9127a2753cafb1172908e066ab9
child 531243 2d918365a8658bb0b8f94ed938dcf3842edf8404
push id37436
push userncsoregi@mozilla.com
push dateWed, 20 May 2020 21:30:50 +0000
treeherdermozilla-central@6c10970490f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1633340
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1633340 - Part 7: Request even longer timeout for ETP tests in Fission. r=baku The ETP test needs a longer running time in Fission. We make it longer in this patch. Differential Revision: https://phabricator.services.mozilla.com/D75980
toolkit/components/antitracking/test/browser/head.js
--- a/toolkit/components/antitracking/test/browser/head.js
+++ b/toolkit/components/antitracking/test/browser/head.js
@@ -65,17 +65,18 @@ const BEHAVIOR_REJECT = Ci.nsICookieServ
 const BEHAVIOR_LIMIT_FOREIGN = Ci.nsICookieService.BEHAVIOR_LIMIT_FOREIGN;
 const BEHAVIOR_REJECT_FOREIGN = Ci.nsICookieService.BEHAVIOR_REJECT_FOREIGN;
 const BEHAVIOR_REJECT_TRACKER = Ci.nsICookieService.BEHAVIOR_REJECT_TRACKER;
 
 let originalRequestLongerTimeout = requestLongerTimeout;
 // eslint-disable-next-line no-global-assign
 requestLongerTimeout = function AntiTrackingRequestLongerTimeout(factor) {
   let ccovMultiplier = AppConstants.MOZ_CODE_COVERAGE ? 2 : 1;
-  originalRequestLongerTimeout(ccovMultiplier * factor);
+  let fissionMultiplier = SpecialPowers.useRemoteSubframes ? 2 : 1;
+  originalRequestLongerTimeout(ccovMultiplier * fissionMultiplier * factor);
 };
 
 requestLongerTimeout(3);
 
 const { UrlClassifierTestUtils } = ChromeUtils.import(
   "resource://testing-common/UrlClassifierTestUtils.jsm"
 );