Bug 1364068 - Enable the 'new-profile' ping. r?gfritzsche
MozReview-Commit-ID: 6DXa20aCOBr
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1453,16 +1453,18 @@ pref("browser.translation.ui.show", fals
// Allows to define the translation engine. Bing is default, Yandex may optionally switched on.
pref("browser.translation.engine", "bing");
// Telemetry settings.
// Determines if Telemetry pings can be archived locally.
pref("toolkit.telemetry.archive.enabled", true);
// Enables sending the shutdown ping when Firefox shuts down.
pref("toolkit.telemetry.shutdownPingSender.enabled", true);
+// Enables sending the 'new-profile' ping on new profiles.
+pref("toolkit.telemetry.newProfilePing.enabled", true);
// Telemetry experiments settings.
pref("experiments.enabled", true);
pref("experiments.manifest.fetchIntervalSeconds", 86400);
pref("experiments.manifest.uri", "https://telemetry-experiment.cdn.mozilla.net/manifest/v1/firefox/%VERSION%/%CHANNEL%");
// Whether experiments are supported by the current application profile.
pref("experiments.supported", true);
--- a/toolkit/components/telemetry/tests/unit/head.js
+++ b/toolkit/components/telemetry/tests/unit/head.js
@@ -302,20 +302,21 @@ if (runningInParent) {
// Set logging preferences for all the tests.
Services.prefs.setCharPref("toolkit.telemetry.log.level", "Trace");
// Telemetry archiving should be on.
Services.prefs.setBoolPref("toolkit.telemetry.archive.enabled", true);
// Telemetry xpcshell tests cannot show the infobar.
Services.prefs.setBoolPref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);
// FHR uploads should be enabled.
Services.prefs.setBoolPref("datareporting.healthreport.uploadEnabled", true);
- // Many tests expect the shutdown ping to not be sent on shutdown and will fail
- // if receive an unexpected ping. Let's globally disable the shutdown ping sender:
- // the relevant tests will enable this pref when needed.
+ // Many tests expect the shutdown and the new-profile to not be sent on shutdown
+ // and will fail if receive an unexpected ping. Let's globally disable these features:
+ // the relevant tests will enable these prefs when needed.
Services.prefs.setBoolPref("toolkit.telemetry.shutdownPingSender.enabled", false);
+ Services.prefs.setBoolPref("toolkit.telemetry.newProfilePing.enabled", false);
// Ensure browser experiments are also disabled, to avoid network activity
// when toggling PREF_ENABLED.
Services.prefs.setBoolPref("experiments.enabled", false);
fakePingSendTimer((callback, timeout) => {
Services.tm.dispatchToMainThread(() => callback());
},