Bug 320901: Remove reloading code, key and context menu item from help viewer. r=mano, beltzner

This commit is contained in:
steffen.wilberg%web.de 2006-04-15 23:11:31 +00:00
parent e0641fe28a
commit 79507d5988
4 changed files with 0 additions and 34 deletions

View File

@ -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
{

View File

@ -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"

View File

@ -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="&copyCmd.label;"

View File

@ -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">