Bug 1582976 - Use version_display.txt in SeaMonkey about page. r=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 01 Oct 2019 16:39:56 +0200
changeset 37037 8cb2fc11db8b1bd4796f8e5ae1c623c07e29179b
parent 37036 80b647910ff0037cf2b7022a705491b4dbdbf2e7
child 37038 665db3e150aef5f1b29f1a4b10dce4dbe84ca533
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersIanN
bugs1582976
Bug 1582976 - Use version_display.txt in SeaMonkey about page. r=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