Backed out changeset 60ee07f3171f (bug 1519480) for TV and bc failures in browser_webauthn_telemetry.js CLOSED TREE
authorshindli <shindli@mozilla.com>
Wed, 23 Jan 2019 00:28:22 +0200
changeset 514890 0216ba36d52eedae52828a3d3a0166dc603b8339
parent 514889 69c9fbe4dd38e65a231a683dbd8471f813b54dfe
child 514891 cfee3de00f1274a681a39f908e071440613a011b
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1519480
milestone66.0a1
backs out60ee07f3171f98b42cd7ab9e134b6147e02b5539
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
Backed out changeset 60ee07f3171f (bug 1519480) for TV and bc failures in browser_webauthn_telemetry.js CLOSED TREE
dom/webauthn/tests/browser/browser_webauthn_telemetry.js
--- a/dom/webauthn/tests/browser/browser_webauthn_telemetry.js
+++ b/dom/webauthn/tests/browser/browser_webauthn_telemetry.js
@@ -1,19 +1,26 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 const TEST_URL = "https://example.com/";
 
+// Return the scalars from the parent-process.
+function getParentProcessScalars(aKeyed = false, aClear = false) {
+  const scalars = aKeyed ?
+    Services.telemetry.getSnapshotForKeyedScalars("main", aClear)["parent"] :
+    Services.telemetry.getSnapshotForScalars("main", aClear)["parent"];
+  return scalars || {};
+}
+
 function getTelemetryForScalar(aName) {
-  let scalars = TelemetryTestUtils.getParentProcessScalars(
-    Ci.nsITelemetry.DATASET_RELEASE_CHANNEL_OPTIN, true);
+  let scalars = getParentProcessScalars(true);
   return scalars[aName] || 0;
 }
 
 function cleanupTelemetry() {
   Services.telemetry.clearScalars();
   Services.telemetry.clearEvents();
   Services.telemetry.getHistogramById("WEBAUTHN_CREATE_CREDENTIAL_MS").clear();
   Services.telemetry.getHistogramById("WEBAUTHN_GET_ASSERTION_MS").clear();