Bug 1582976 - Use version_display.txt in SeaMonkey about page. r=IanN a=IanN RELEASE_69_END
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 01 Oct 2019 16:39:56 +0200
changeset 36196 f9f5981ef6cea7d98757624c384d8bf08b1fb227
parent 36195 cffa8a9bdd8ec6616493a483b3818f4890d7f985
child 36197 97cd0e7c48d7ab341c43ae00539fb4cd69afdb29
push id393
push userfrgrahl@gmx.net
push dateTue, 01 Oct 2019 15:34:21 +0000
reviewersIanN, IanN
bugs1582976
Bug 1582976 - Use version_display.txt in SeaMonkey about page. r=IanN a=IanN
suite/base/content/about.js
suite/config/version_display.txt
--- a/suite/base/content/about.js
+++ b/suite/base/content/about.js
@@ -1,30 +1,31 @@
 /* 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/. */
 
 var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
+var {AppConstants} = ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
 
 window.onload = function () {
   // get release notes URL and vendor URL from prefs
   var releaseNotesURL = Services.urlFormatter.formatURLPref("app.releaseNotesURL");
   if (releaseNotesURL != "about:blank") {
     var relnotes = document.getElementById("releaseNotesURL");
     relnotes.href = releaseNotesURL;
   }
 
   var vendorURL = Services.urlFormatter.formatURLPref("app.vendorURL");
   if (vendorURL != "about:blank") {
     var vendor = document.getElementById("vendorURL");
     vendor.href = vendorURL;
   }
 
   // append the version of the XUL application (!= XULRunner platform version)
-  var versionNum = Services.appinfo.version;
+  var versionNum = AppConstants.MOZ_APP_VERSION_DISPLAY;
   var version = document.getElementById("version");
   version.appendChild(document.createTextNode(versionNum));
 
   // append user agent
   var ua = navigator.userAgent;
   if (ua) {
     var uaItem = document.getElementById("userAgent");
     uaItem.appendChild(document.createTextNode(ua));
copy from suite/config/version.txt
copy to suite/config/version_display.txt