Bug 864251 - Link to update history from about:support; r=adw

This commit is contained in:
Geoff Lankow 2013-05-25 23:58:02 +12:00
parent 3050badbd4
commit ca77a41e56
3 changed files with 23 additions and 0 deletions

View File

@ -506,6 +506,12 @@ function openProfileDirectory() {
new nsLocalFile(profileDir).reveal();
}
function showUpdateHistory() {
var prompter = Cc["@mozilla.org/updates/update-prompt;1"]
.createInstance(Ci.nsIUpdatePrompt);
prompter.showUpdateHistory(window);
}
/**
* Profile reset is only supported for the default profile if the appropriate migrator exists.
*/

View File

@ -81,6 +81,18 @@
</td>
</tr>
<tr class="no-copy">
<th class="column">
&aboutSupport.appBasicsUpdateHistory;
</th>
<td>
<button onclick="showUpdateHistory()">
&aboutSupport.appBasicsShowUpdateHistory;
</button>
</td>
</tr>
<tr>
<th class="column">
&aboutSupport.appBasicsUserAgent;

View File

@ -21,6 +21,11 @@
<!ENTITY aboutSupport.appBasicsName "Name">
<!ENTITY aboutSupport.appBasicsVersion "Version">
<!-- LOCALIZATION NOTE (aboutSupport.appBasicsUpdateHistory, aboutSupport.appBasicsShowUpdateHistory):
"Update" is a noun here, not a verb. -->
<!ENTITY aboutSupport.appBasicsUpdateHistory "Update History">
<!ENTITY aboutSupport.appBasicsShowUpdateHistory "Show Update History">
<!ENTITY aboutSupport.appBasicsProfileDir "Profile Directory">
<!-- LOCALIZATION NOTE (aboutSupport.appBasicsProfileDirWinMac):
This is the Windows- and Mac-specific variant of aboutSupport.appBasicsProfileDir.