Issue #1081 - Restore "release notes" item in the help menu

This commit is contained in:
Matt A. Tobin 2019-05-09 15:54:49 -04:00 • committed by Roy Tam
commit 112961367a
4 changed files with 33 additions and 8 deletions

View file

@ -57,15 +57,21 @@
label="&helpTroubleshootingInfo.label;" label="&helpTroubleshootingInfo.label;"
oncommand="openTroubleshootingPage()" oncommand="openTroubleshootingPage()"
onclick="checkForMiddleClick(this, event);"/> onclick="checkForMiddleClick(this, event);"/>
<menuitem id="helpSafeMode"
accesskey="&helpSafeMode.accesskey;"
label="&helpSafeMode.label;"
oncommand="restart(true);"/>
<menuseparator/>
<menuitem id="releaseNotes"
accesskey="&helpReleaseNotes.accesskey;"
label="&helpReleaseNotes.label;"
oncommand="openReleaseNotes();"
onclick="checkForMiddleClick(this, event);"/>
<menuitem id="feedbackPage" <menuitem id="feedbackPage"
accesskey="&helpFeedbackPage.accesskey;" accesskey="&helpFeedbackPage.accesskey;"
label="&helpFeedbackPage.label;" label="&helpFeedbackPage.label;"
oncommand="openFeedbackPage()" oncommand="openFeedbackPage()"
onclick="checkForMiddleClick(this, event);"/> onclick="checkForMiddleClick(this, event);"/>
<menuitem id="helpSafeMode"
accesskey="&helpSafeMode.accesskey;"
label="&helpSafeMode.label;"
oncommand="restart(true);"/>
<menuseparator id="updatesSeparator"/> <menuseparator id="updatesSeparator"/>
<menuitem id="checkForUpdates" class="menuitem-iconic" <menuitem id="checkForUpdates" class="menuitem-iconic"
#ifdef MOZ_UPDATER #ifdef MOZ_UPDATER

View file

@ -350,14 +350,19 @@
label="&helpTroubleshootingInfo.label;" label="&helpTroubleshootingInfo.label;"
oncommand="openTroubleshootingPage()" oncommand="openTroubleshootingPage()"
onclick="checkForMiddleClick(this,event);"/> onclick="checkForMiddleClick(this,event);"/>
<menuitem id="appmenu_safeMode"
label="&appMenuSafeMode.label;"
oncommand="restart(true);"/>
<menuseparator/>
<menuitem id="appmenu_releaseNotes"
accesskey="&helpReleaseNotes.accesskey;"
label="&helpReleaseNotes.label;"
oncommand="openReleaseNotes();"
onclick="checkForMiddleClick(this, event);"/>
<menuitem id="appmenu_feedbackPage" <menuitem id="appmenu_feedbackPage"
label="&helpFeedbackPage.label;" label="&helpFeedbackPage.label;"
oncommand="openFeedbackPage()" oncommand="openFeedbackPage()"
onclick="checkForMiddleClick(this, event);"/> onclick="checkForMiddleClick(this, event);"/>
<menuseparator/>
<menuitem id="appmenu_safeMode"
label="&appMenuSafeMode.label;"
oncommand="restart(true);"/>
#ifdef MOZ_UPDATER #ifdef MOZ_UPDATER
<menuseparator/> <menuseparator/>
<menuitem id="appmenu_checkForUpdates" <menuitem id="appmenu_checkForUpdates"

View file

@ -702,6 +702,18 @@ function openAdvancedPreferences(tabID)
openPreferences("paneAdvanced", { "advancedTab" : tabID }); openPreferences("paneAdvanced", { "advancedTab" : tabID });
} }
/**
* Opens the release notes page for this version of the application.
*/
function openReleaseNotes()
{
var relnotesURL = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
.getService(Components.interfaces.nsIURLFormatter)
.formatURLPref("app.releaseNotesURL");
openUILinkIn(relnotesURL, "tab");
}
/** /**
* Opens the troubleshooting information (about:support) page for this version * Opens the troubleshooting information (about:support) page for this version
* of the application. * of the application.

View file

@ -15,6 +15,8 @@
<!ENTITY helpMenuWin.label "Help"> <!ENTITY helpMenuWin.label "Help">
<!ENTITY helpMenuWin.accesskey "H"> <!ENTITY helpMenuWin.accesskey "H">
<!ENTITY updateCmd.label "Check for Updates…"> <!ENTITY updateCmd.label "Check for Updates…">
<!ENTITY helpReleaseNotes.label "Release Notes">
<!ENTITY helpReleaseNotes.accesskey "N">
<!ENTITY aboutProduct.label "About &brandShortName;"> <!ENTITY aboutProduct.label "About &brandShortName;">
<!ENTITY aboutProduct.accesskey "A"> <!ENTITY aboutProduct.accesskey "A">
<!ENTITY productHelp.label "&brandShortName; Help"> <!ENTITY productHelp.label "&brandShortName; Help">