Bug 524757 - "Add architecture and operating system to about:support". r=adw

This commit is contained in:
Vince Tieu 2016-02-09 15:57:00 +01:00
parent 6459d850c0
commit 54f1239848
5 changed files with 25 additions and 0 deletions

View File

@ -37,6 +37,7 @@ var snapshotFormatters = {
application: function application(data) {
$("application-box").textContent = data.name;
$("useragent-box").textContent = data.userAgent;
$("osarch-box").textContent = data.osVersion + " " + data.arch;
$("supportLink").href = data.supportURL;
let version = AppConstants.MOZ_APP_VERSION_DISPLAY;
if (data.vendor)

View File

@ -130,6 +130,15 @@
</td>
</tr>
<tr>
<th class="column">
&aboutSupport.appBasicsOS;
</th>
<td id="osarch-box">
</td>
</tr>
<tr id="profile-row" class="no-copy">
<th class="column">
#ifdef XP_WIN

View File

@ -54,6 +54,7 @@ Windows/Mac use the term "Folder" instead of "Directory" -->
<!ENTITY aboutSupport.appBasicsEnabledPlugins "Enabled Plugins">
<!ENTITY aboutSupport.appBasicsBuildConfig "Build Configuration">
<!ENTITY aboutSupport.appBasicsUserAgent "User Agent">
<!ENTITY aboutSupport.appBasicsOS "OS">
<!ENTITY aboutSupport.appBasicsMemoryUse "Memory Use">
<!-- LOCALIZATION NOTE the term "Service Workers" should not be translated. -->

View File

@ -178,8 +178,14 @@ this.Troubleshoot = {
var dataProviders = {
application: function application(done) {
let sysInfo = Cc["@mozilla.org/system-info;1"].
getService(Ci.nsIPropertyBag2);
let data = {
name: Services.appinfo.name,
osVersion: sysInfo.getProperty("name") + " " + sysInfo.getProperty("version"),
arch: sysInfo.getProperty("arch"),
version: AppConstants.MOZ_APP_VERSION_DISPLAY,
buildID: Services.appinfo.appBuildID,
userAgent: Cc["@mozilla.org/network/protocol;1?name=http"].

View File

@ -112,6 +112,14 @@ const SNAPSHOT_SCHEMA = {
required: true,
type: "string",
},
osVersion: {
required: true,
type: "string",
},
arch: {
required: true,
type: "string",
},
vendor: {
type: "string",
},