mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 320901: Remove reloading code, key and context menu item from help viewer. r=mano, beltzner
This commit is contained in:
parent
e0641fe28a
commit
79507d5988
@ -425,33 +425,6 @@ function goBack() {
|
||||
}
|
||||
}
|
||||
|
||||
/* copied from browser.js */
|
||||
function BrowserReloadWithFlags(reloadFlags) {
|
||||
/* First, we'll try to use the session history object to reload so
|
||||
* that framesets are handled properly. If we're in a special
|
||||
* window (such as view-source) that has no session history, fall
|
||||
* back on using the web navigation's reload method.
|
||||
*/
|
||||
|
||||
var webNav = getWebNavigation();
|
||||
try {
|
||||
var sh = webNav.sessionHistory;
|
||||
if (sh)
|
||||
webNav = sh.QueryInterface(Components.interfaces.nsIWebNavigation);
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
try {
|
||||
webNav.reload(reloadFlags);
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
function reload() {
|
||||
const reloadFlags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE;
|
||||
return BrowserReloadWithFlags(reloadFlags);
|
||||
}
|
||||
|
||||
function goForward() {
|
||||
try
|
||||
{
|
||||
|
@ -130,7 +130,6 @@
|
||||
<key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
|
||||
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
|
||||
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
|
||||
<key keycode="VK_F5" oncommand="reload();"/>
|
||||
<key id="key_closeWindow" key="&closeWindow.commandkey;"
|
||||
command="cmd_closeWindow" modifiers="accel"/>
|
||||
<key id="key_closeSearchSidebar" keycode="VK_ESCAPE"
|
||||
|
@ -56,10 +56,6 @@
|
||||
accesskey="&forwardButton.accesskey;"
|
||||
observes="canGoForward"
|
||||
oncommand="goForward()"/>
|
||||
<menuitem id="context-reload"
|
||||
label="&reloadCmd.label;"
|
||||
accesskey="&reloadCmd.accesskey;"
|
||||
oncommand="reload();"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="context-copy"
|
||||
label="©Cmd.label;"
|
||||
|
@ -20,8 +20,6 @@
|
||||
<!ENTITY homeButton.tooltip "Go to the Help Start Page">
|
||||
<!ENTITY printButton.label "Print">
|
||||
<!ENTITY printButton.tooltip "Print this page">
|
||||
<!ENTITY reloadCmd.label "Reload">
|
||||
<!ENTITY reloadCmd.accesskey "R">
|
||||
<!ENTITY closeWindow.commandkey "W">
|
||||
|
||||
<!ENTITY throbberItem.title "Activity Indicator">
|
||||
|
Loading…
Reference in New Issue
Block a user