Bug 1498102 - Use only a single content process in browser_blockingServiceWorkers.js to hopefully avoid intermittent failures
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 24 Oct 2018 10:31:10 -0400
changeset 491102 0a7e1b194b75e6d7c556c98ac7a1a68b948bb076
parent 491101 547f834561c3d106a8251922518158a8ca0aacc3
child 491103 f54dd68a3330bc25ff9896a0dcc08cc69d19d936
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
bugs1498102
milestone65.0a1
Bug 1498102 - Use only a single content process in browser_blockingServiceWorkers.js to hopefully avoid intermittent failures
toolkit/components/antitracking/test/browser/browser_blockingServiceWorkers.js
--- a/toolkit/components/antitracking/test/browser/browser_blockingServiceWorkers.js
+++ b/toolkit/components/antitracking/test/browser/browser_blockingServiceWorkers.js
@@ -9,23 +9,25 @@ AntiTracking.runTest("ServiceWorkers",
   },
   null,
   async _ => {
     await new Promise(resolve => {
       Services.clearData.deleteData(Ci.nsIClearDataService.CLEAR_ALL, value => resolve());
     });
   },
   [["dom.serviceWorkers.exemptFromPerDomainMax", true],
+   ["dom.ipc.processCount", 1],
    ["dom.serviceWorkers.enabled", true],
    ["dom.serviceWorkers.testing.enabled", true]]);
 
 AntiTracking.runTest("ServiceWorkers and Storage Access API",
   async _ => {
     await SpecialPowers.pushPrefEnv({"set": [
        ["dom.serviceWorkers.exemptFromPerDomainMax", true],
+       ["dom.ipc.processCount", 1],
        ["dom.serviceWorkers.enabled", true],
        ["dom.serviceWorkers.testing.enabled", true],
     ]});
 
     /* import-globals-from storageAccessAPIHelpers.js */
     await noStorageAccessInitially();
 
     await navigator.serviceWorker.register("empty.js").then(
@@ -41,16 +43,17 @@ AntiTracking.runTest("ServiceWorkers and
       _ => { ok(false, "ServiceWorker cannot be used! " + _); }).then(
       reg => reg.unregister(),
       _ => { ok(false, "unregister failed"); }).
       catch(e => ok(false, "Promise rejected: " + e));
   },
   async _ => {
     await SpecialPowers.pushPrefEnv({"set": [
        ["dom.serviceWorkers.exemptFromPerDomainMax", true],
+       ["dom.ipc.processCount", 1],
        ["dom.serviceWorkers.enabled", true],
        ["dom.serviceWorkers.testing.enabled", true],
     ]});
 
     /* import-globals-from storageAccessAPIHelpers.js */
     await noStorageAccessInitially();
 
     await navigator.serviceWorker.register("empty.js").then(
@@ -72,11 +75,12 @@ AntiTracking.runTest("ServiceWorkers and
       catch(e => ok(false, "Promise rejected: " + e));
   },
   async _ => {
     await new Promise(resolve => {
       Services.clearData.deleteData(Ci.nsIClearDataService.CLEAR_ALL, value => resolve());
     });
   },
   [["dom.serviceWorkers.exemptFromPerDomainMax", true],
+   ["dom.ipc.processCount", 1],
    ["dom.serviceWorkers.enabled", true],
    ["dom.serviceWorkers.testing.enabled", true]],
   false, false);