Bug 1575246 - Clear telemetry events before and after protections panel tests. r=johannh
authorNihanth Subramanya <nhnt11@gmail.com>
Mon, 26 Aug 2019 21:04:55 +0000
changeset 553759 d3025ffd55d1038d74ca9979a039d5669f6931ad
parent 553758 de8a6bdc5d73dee65bc035410421a034c0688088
child 553760 29fa2438a42a6249aa9047ad51afec42015dc25b
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1575246
milestone70.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 1575246 - Clear telemetry events before and after protections panel tests. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D43392
browser/base/content/test/siteProtections/browser_protections_UI.js
--- a/browser/base/content/test/siteProtections/browser_protections_UI.js
+++ b/browser/base/content/test/siteProtections/browser_protections_UI.js
@@ -62,19 +62,21 @@ add_task(async function setup() {
       // when landing on the page.
       ["browser.contentblocking.report.monitor.enabled", false],
       ["browser.contentblocking.report.lockwise.enabled", false],
       ["browser.contentblocking.report.proxy.enabled", false],
     ],
   });
   let oldCanRecord = Services.telemetry.canRecordExtended;
   Services.telemetry.canRecordExtended = true;
+  Services.telemetry.clearEvents();
 
   registerCleanupFunction(() => {
     Services.telemetry.canRecordExtended = oldCanRecord;
+    Services.telemetry.clearEvents();
   });
 });
 
 add_task(async function testToggleSwitch() {
   let tab = await BrowserTestUtils.openNewForegroundTab(
     gBrowser,
     "https://example.com"
   );