diff --git a/toolkit/components/telemetry/TelemetryEnvironment.jsm b/toolkit/components/telemetry/TelemetryEnvironment.jsm index d569911dba47..16f5f843cc9b 100644 --- a/toolkit/components/telemetry/TelemetryEnvironment.jsm +++ b/toolkit/components/telemetry/TelemetryEnvironment.jsm @@ -102,8 +102,12 @@ const DEFAULT_ENVIRONMENT_PREFS = new Map([ ["browser.newtabpage.enhanced", {what: RECORD_PREF_VALUE}], ["browser.polaris.enabled", {what: RECORD_PREF_VALUE}], ["browser.shell.checkDefaultBrowser", {what: RECORD_PREF_VALUE}], + ["browser.search.suggest.enabled", {what: RECORD_PREF_VALUE}], ["browser.startup.homepage", {what: RECORD_PREF_STATE}], ["browser.startup.page", {what: RECORD_PREF_VALUE}], + ["browser.urlbar.suggest.searches", {what: RECORD_PREF_VALUE}], + ["browser.urlbar.unifiedcomplete", {what: RECORD_PREF_VALUE}], + ["browser.urlbar.userMadeSearchSuggestionsChoice", {what: RECORD_PREF_VALUE}], ["devtools.chrome.enabled", {what: RECORD_PREF_VALUE}], ["devtools.debugger.enabled", {what: RECORD_PREF_VALUE}], ["devtools.debugger.remote-enabled", {what: RECORD_PREF_VALUE}], diff --git a/toolkit/components/telemetry/docs/environment.rst b/toolkit/components/telemetry/docs/environment.rst index f87bd34bf788..2f6a426005a1 100644 --- a/toolkit/components/telemetry/docs/environment.rst +++ b/toolkit/components/telemetry/docs/environment.rst @@ -277,3 +277,20 @@ searchCohort ~~~~~~~~~~~~ If the user has been enrolled into a search default change experiment, this contains the string identifying the experiment the user is taking part in. Most user profiles will never be part of any search default change experiment, and will not send this value. + +userPrefs +~~~~~~~~~ + +This object contains user preferences. + +Each key in the object is the name of a preference. A key's value depends on the policy with which the preference was collected. There are two such policies, "value" and "state". For preferences collected under the "value" policy, the value will be the preference's value. For preferences collected under the "state" policy, the value will be an opaque marker signifying only that the preference has a user value. The "state" policy is therefore used when user privacy is a concern. + +The following is a partial list of collected preferences. + +- ``browser.search.suggest.enabled``: The "master switch" for search suggestions everywhere in Firefox (search bar, urlbar, etc.). Defaults to true. + +- ``browser.urlbar.suggest.searches``: True if search suggestions are enabled in the urlbar. Defaults to false. + +- ``browser.urlbar.unifiedcomplete``: True if the urlbar's UnifiedComplete back-end is enabled. + +- ``browser.urlbar.userMadeSearchSuggestionsChoice``: True if the user has clicked Yes or No in the urlbar's opt-in notification. Defaults to false.