Add architecture detection to "about:" and "about:support"

Issue #492
This commit is contained in:
janekptacijarabaci 2018-06-13 17:31:46 +02:00 • committed by Roy Tam
commit 63ad437c13
6 changed files with 21 additions and 5 deletions

View file

@ -33,7 +33,12 @@ var versionNum = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo)
.version;
var version = document.getElementById("version");
version.textContent += " " + versionNum;
#ifdef HAVE_64BIT_BUILD
var versionStr = versionNum + " (64-bit)";
#else
var versionStr = versionNum + " (32-bit)";
#endif
version.textContent += " " + versionStr;
// insert the buildid of the XUL application
var BuildIDVal = Components.classes["@mozilla.org/xre/app-info;1"]

View file

@ -42,6 +42,9 @@ var snapshotFormatters = {
$("os-box").textContent = data.osVersion;
$("supportLink").href = data.supportURL;
let version = AppConstants.MOZ_APP_VERSION_DISPLAY;
if (data.versionArch) {
version += " (" + data.versionArch + ")";
}
if (data.vendor)
version += " (" + data.vendor + ")";
$("version-box").textContent = version;

View file

@ -8,7 +8,7 @@ toolkit.jar:
content/global/textbox.css
content/global/menulist.css
content/global/autocomplete.css
content/global/about.js
* content/global/about.js
content/global/about.xhtml
content/global/aboutAbout.js
content/global/aboutAbout.xhtml