зеркало из https://github.com/mozilla/gecko-dev.git
Bug 630265 - Bookmarks menu broken in non browser windows. r=mak. a=blocker.
This commit is contained in:
Родитель
625d9820bf
Коммит
f8ba541efc
|
@ -419,6 +419,10 @@ var PlacesCommandHook = {
|
|||
*/
|
||||
updateBookmarkAllTabsCommand:
|
||||
function PCH_updateBookmarkAllTabsCommand() {
|
||||
// There's nothing to do in non-browser windows.
|
||||
if (window.location.href != getBrowserURL())
|
||||
return;
|
||||
|
||||
// Disable "Bookmark All Tabs" if there are less than two
|
||||
// "unique current pages".
|
||||
goSetCommandEnabled("Browser:BookmarkAllTabs",
|
||||
|
|
|
@ -1733,8 +1733,8 @@ function nonBrowserWindowStartup()
|
|||
'Browser:SendLink', 'cmd_pageSetup', 'cmd_print', 'cmd_find', 'cmd_findAgain',
|
||||
'viewToolbarsMenu', 'viewSidebarMenuMenu', 'Browser:Reload',
|
||||
'viewFullZoomMenu', 'pageStyleMenu', 'charsetMenu', 'View:PageSource', 'View:FullScreen',
|
||||
'viewHistorySidebar', 'Browser:AddBookmarkAs', 'View:PageInfo', 'Tasks:InspectPage',
|
||||
'Browser:ToggleTabView'];
|
||||
'viewHistorySidebar', 'Browser:AddBookmarkAs', 'Browser:BookmarkAllTabs',
|
||||
'View:PageInfo', 'Tasks:InspectPage', 'Browser:ToggleTabView', ];
|
||||
var element;
|
||||
|
||||
for (var id in disabledItems)
|
||||
|
|
Загрузка…
Ссылка в новой задаче