Bug 1498577 - Drag browser_trackingUI_telemetry.js into the real world where fastblock is only enabled on Nightly r=johannh
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 16 Oct 2018 10:42:44 +0000
changeset 441465 327775843762d0268c7d48b88771d884eec7b800
parent 441464 21f2d2802b18cf831154d454535d27998a6c5176
child 441466 463d82852c31d6709c4c176afd0da2be799d13b5
push id34866
push usershindli@mozilla.com
push dateWed, 17 Oct 2018 00:54:47 +0000
treeherdermozilla-central@d4fe026dee75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1498577
milestone64.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 1498577 - Drag browser_trackingUI_telemetry.js into the real world where fastblock is only enabled on Nightly r=johannh Differential Revision: https://phabricator.services.mozilla.com/D8801
browser/base/content/test/trackingUI/browser_trackingUI_telemetry.js
--- a/browser/base/content/test/trackingUI/browser_trackingUI_telemetry.js
+++ b/browser/base/content/test/trackingUI/browser_trackingUI_telemetry.js
@@ -35,17 +35,18 @@ add_task(async function setup() {
   let enabledCounts =
     Services.telemetry.getHistogramById("TRACKING_PROTECTION_ENABLED").snapshot().counts;
   is(enabledCounts[0], 1, "TP was not enabled on start up");
 
   let scalars = Services.telemetry.snapshotScalars(
     Ci.nsITelemetry.DATASET_RELEASE_CHANNEL_OPTOUT, false).parent;
 
   is(scalars["contentblocking.enabled"], true, "CB was enabled at startup");
-  is(scalars["contentblocking.fastblock_enabled"], true, "FB was enabled at startup");
+  is(scalars["contentblocking.fastblock_enabled"], AppConstants.NIGHTLY_BUILD,
+     "FB is enabled in Nightly");
   is(scalars["contentblocking.exceptions"], 0, "no CB exceptions at startup");
 });
 
 
 add_task(async function testShieldHistogram() {
   Services.prefs.setBoolPref(PREF, true);
   let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser);