mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 524757 - "Add architecture and operating system to about:support". r=adw
This commit is contained in:
parent
6459d850c0
commit
54f1239848
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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. -->
|
||||
|
@ -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"].
|
||||
|
@ -112,6 +112,14 @@ const SNAPSHOT_SCHEMA = {
|
||||
required: true,
|
||||
type: "string",
|
||||
},
|
||||
osVersion: {
|
||||
required: true,
|
||||
type: "string",
|
||||
},
|
||||
arch: {
|
||||
required: true,
|
||||
type: "string",
|
||||
},
|
||||
vendor: {
|
||||
type: "string",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user