mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 280415 "Save As Page..." menu item disappears if no window open
p=me r=timeless sr=neil.parkwaycc.co.uk a=caillon
This commit is contained in:
parent
07bcd35ed0
commit
289365d9bb
@ -1372,7 +1372,7 @@ function BrowserEditBookmarks()
|
||||
function updateCloseItems()
|
||||
{
|
||||
var browser = getBrowser();
|
||||
if (browser.getStripVisibility()) {
|
||||
if (browser && browser.getStripVisibility()) {
|
||||
document.getElementById('menu_close').setAttribute('label', gNavigatorBundle.getString('tabs.closeTab'));
|
||||
document.getElementById('menu_closeWindow').hidden = false;
|
||||
document.getElementById('menu_closeOtherTabs').hidden = false;
|
||||
@ -1685,7 +1685,7 @@ function hiddenWindowStartup()
|
||||
|
||||
// Disable menus which are not appropriate
|
||||
var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage',
|
||||
'cmd_printSetup', /*'Browser:PrintPreview',*/
|
||||
'Browser:SavePage', 'cmd_printSetup', /*'Browser:PrintPreview',*/
|
||||
'Browser:Print', 'canGoBack', 'canGoForward',
|
||||
'Browser:Home', 'Browser:AddBookmark',
|
||||
'Browser:AddBookmarkAs', 'Browser:AddGroupmarkAs',
|
||||
|
Loading…
Reference in New Issue
Block a user