Add application executable location to the about:support page.

This commit is contained in:
Fedor 2019-07-08 13:09:28 +03:00
parent 6892a57867
commit 5b7e7a582c
3 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,7 @@ var snapshotFormatters = {
$("application-box").textContent = data.name;
$("useragent-box").textContent = data.userAgent;
$("os-box").textContent = data.osVersion;
$("binary-box").textContent = Services.dirsvc.get("XREExeF", Ci.nsIFile).path;
$("supportLink").href = data.supportURL;
let version = AppConstants.MOZ_APP_VERSION_DISPLAY;
if (data.versionArch) {

View File

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

View File

@ -45,6 +45,7 @@ This is likely the same like id.heading in crashes.dtd. -->
<!ENTITY aboutSupport.appBasicsUpdateHistory "Update History">
<!ENTITY aboutSupport.appBasicsShowUpdateHistory "Show Update History">
<!ENTITY aboutSupport.appBasicsBinary "Application Binary">
<!ENTITY aboutSupport.appBasicsProfileDir "Profile Directory">
<!-- LOCALIZATION NOTE (aboutSupport.appBasicsProfileDirWinMac):
This is the Windows- and Mac-specific variant of aboutSupport.appBasicsProfileDir.