bug 1408512 - test_tabCloseProbes doesn't need to change toolkit.telemetry.enabled r?Dexter draft
authorChris H-C <chutten@mozilla.com>
Tue, 17 Oct 2017 15:45:13 -0400
changeset 686235 ec12cb8db635ef0ab935d8db17e0a657286f6c3d
parent 686234 006d3be0ee2b186dfc60782c05da5d16ff62978e
child 686236 5444e0cd0433b6afd831773f0357ae973f809721
push id86134
push userbmo:chutten@mozilla.com
push dateWed, 25 Oct 2017 16:14:43 +0000
reviewersDexter
bugs1408512
milestone58.0a1
bug 1408512 - test_tabCloseProbes doesn't need to change toolkit.telemetry.enabled r?Dexter MozReview-Commit-ID: 4PDwO0X2NrO
browser/base/content/test/tabs/browser_tabCloseProbes.js
--- a/browser/base/content/test/tabs/browser_tabCloseProbes.js
+++ b/browser/base/content/test/tabs/browser_tabCloseProbes.js
@@ -22,20 +22,16 @@ function assertCount(snapshot, expectedC
   // snapshot.count entries
   Assert.equal(snapshot.counts.reduce((a, b) => a + b), expectedCount,
                `Should only be ${expectedCount} collected value.`);
 }
 
 add_task(async function setup() {
   // These probes are opt-in, meaning we only capture them if extended
   // Telemetry recording is enabled.
-  await SpecialPowers.pushPrefEnv({
-    set: [["toolkit.telemetry.enabled", true]]
-  });
-
   let oldCanRecord = Services.telemetry.canRecordExtended;
   Services.telemetry.canRecordExtended = true;
   registerCleanupFunction(() => {
     Services.telemetry.canRecordExtended = oldCanRecord;
   });
 });
 
 /**