Bug 1529232 - Enable Ecosystem Telemetry on Nightly r=gfritzsche
☠☠ backed out by 677a1d7108cd ☠ ☠
authorJan-Erik Rediger <jrediger@mozilla.com>
Thu, 21 Mar 2019 22:29:44 +0000
changeset 465745 8ca8be52ca5799b95809541956ef3abc9be4719f
parent 465744 ed20a4120896c4ad0071fd3a4eabc21399ccfe49
child 465746 f2935b75f9dcf8b5816192d7d2b6a01f43f2d029
push id35746
push usershindli@mozilla.com
push dateSat, 23 Mar 2019 09:46:24 +0000
treeherdermozilla-central@02b7484f316b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche
bugs1529232
milestone68.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 1529232 - Enable Ecosystem Telemetry on Nightly r=gfritzsche Depends on D21521 Differential Revision: https://phabricator.services.mozilla.com/D23293
browser/app/profile/firefox.js
toolkit/components/telemetry/tests/unit/head.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1536,16 +1536,22 @@ pref("toolkit.telemetry.firstShutdownPin
 // Enables sending the 'new-profile' ping on new profiles.
 pref("toolkit.telemetry.newProfilePing.enabled", true);
 // Enables sending 'update' pings on Firefox updates.
 pref("toolkit.telemetry.updatePing.enabled", true);
 // Enables sending 'bhr' pings when the browser hangs.
 pref("toolkit.telemetry.bhrPing.enabled", true);
 // Enables using Hybrid Content Telemetry from Mozilla privileged pages.
 pref("toolkit.telemetry.hybridContent.enabled", true);
+// Whether to enable Ecosystem Telemetry, requires a restart.
+#ifdef NIGHTLY_BUILD
+pref("toolkit.telemetry.ecosystemtelemetry.enabled", true);
+#else
+pref("toolkit.telemetry.ecosystemtelemetry.enabled", false);
+#endif
 
 // Ping Centre Telemetry settings.
 pref("browser.ping-centre.telemetry", true);
 pref("browser.ping-centre.log", false);
 pref("browser.ping-centre.staging.endpoint", "https://onyx_tiles.stage.mozaws.net/v3/links/ping-centre");
 pref("browser.ping-centre.production.endpoint", "https://tiles.services.mozilla.com/v3/links/ping-centre");
 
 // Enable GMP support in the addon manager.
--- a/toolkit/components/telemetry/tests/unit/head.js
+++ b/toolkit/components/telemetry/tests/unit/head.js
@@ -415,16 +415,20 @@ if (runningInParent) {
   Services.prefs.setBoolPref(TelemetryUtils.Preferences.HealthPingEnabled, false);
 
   // Speed up child process accumulations
   Services.prefs.setIntPref(TelemetryUtils.Preferences.IPCBatchTimeout, 10);
 
   // Ensure we're not in a GeckoView-like environment by default
   Services.prefs.setBoolPref("toolkit.telemetry.isGeckoViewMode", false);
 
+  // Make sure ecosystem telemetry is disabled, no matter which build
+  // Individual tests will enable it when appropriate
+  Services.prefs.setBoolPref(TelemetryUtils.Preferences.EcosystemTelemetryEnabled, false);
+
   // Non-unified Telemetry (e.g. Fennec on Android) needs the preference to be set
   // in order to enable Telemetry.
   if (Services.prefs.getBoolPref(TelemetryUtils.Preferences.Unified, false)) {
     Services.prefs.setBoolPref(TelemetryUtils.Preferences.OverridePreRelease, true);
   } else {
     Services.prefs.setBoolPref(TelemetryUtils.Preferences.TelemetryEnabled, true);
   }