Bug 1485673 follow-up: Fix lint failures on a CLOSED TREE
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 24 Aug 2018 11:51:58 -0400
changeset 491070 260c51a609aeee0731a89d676efaadcc857f2631
parent 491069 a6b5cae2a7a3ba1d0307c1e255fb8947771df637
child 491071 ab24a5b6cd0a9f8f1fad9fe555226e2296afd0a9
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1485673
milestone63.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 1485673 follow-up: Fix lint failures on a CLOSED TREE
toolkit/components/antitracking/test/browser/browser_onModifyRequestNotificationForTrackingResources.js
--- a/toolkit/components/antitracking/test/browser/browser_onModifyRequestNotificationForTrackingResources.js
+++ b/toolkit/components/antitracking/test/browser/browser_onModifyRequestNotificationForTrackingResources.js
@@ -1,8 +1,9 @@
+/* eslint-disable mozilla/no-arbitrary-setTimeout */
 ChromeUtils.import("resource://gre/modules/Services.jsm");
 
 /**
  * This test ensures that http-on-modify-request is dispatched for channels that
  * are blocked by tracking protection.  It sets up a page with a third-party script
  * resource on it that is blocked by TP, and sets up an http-on-modify-request
  * observer which waits to be notified about that resource.  The test would time out
  * if the http-on-modify-request notification isn't dispatched before the channel is
@@ -32,17 +33,17 @@ async function onModifyRequest() {
         }, 100);
       } else if (spec.endsWith("head.js")) {
         ++gExpectedResourcesSeen;
       }
       if (gExpectedResourcesSeen == 3) {
         Services.obs.removeObserver(observer, "http-on-modify-request");
         resolve();
       }
-    }, "http-on-modify-request", false);
+    }, "http-on-modify-request");
   });
 }
 
 add_task(async function() {
   info("Starting subResources test");
 
   await SpecialPowers.flushPrefEnv();
   await SpecialPowers.pushPrefEnv({"set": [