Bug 1546101 - Fixing argument paramater passed to about-telemetry-settings-explanation to fix release vs pre-release info in about:telemetry r=Gijs
authorChristian Frey <christianhfrey@gmail.com>
Wed, 24 Apr 2019 22:38:10 +0000
changeset 471217 f9ccfa09fb6d69c35ddeeaf8984c044e8731ca2a
parent 471216 d428c2d08e38eb7a05a25e0c603c90745e1427cb
child 471218 4e06efa9d48ede0a40fdbb321c870986e72a0cae
push id35912
push userbtara@mozilla.com
push dateThu, 25 Apr 2019 09:46:25 +0000
treeherdermozilla-central@0ec836eceb96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1546101
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 1546101 - Fixing argument paramater passed to about-telemetry-settings-explanation to fix release vs pre-release info in about:telemetry r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D28730
toolkit/content/aboutTelemetry.js
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -203,20 +203,20 @@ var Settings = {
 
   /**
    * Updates the button & text at the top of the page to reflect Telemetry state.
    */
   render() {
     let settingsExplanation = document.getElementById("settings-explanation");
     let extendedEnabled = Services.telemetry.canRecordExtended;
 
-    let datacase = extendedEnabled ? "prerelease" : "release";
+    let channel = extendedEnabled ? "prerelease" : "release";
     let uploadcase = TelemetrySend.sendingEnabled() ? "enabled" : "disabled";
 
-    document.l10n.setAttributes(settingsExplanation, "about-telemetry-settings-explanation", {datacase, uploadcase});
+    document.l10n.setAttributes(settingsExplanation, "about-telemetry-settings-explanation", {channel, uploadcase});
 
     this.attachObservers();
   },
 };
 
 var PingPicker = {
   viewCurrentPingData: null,
   _archivedPings: null,