Fix bug # 75772: On Mac OS X, add support for window toolbar button which hides/shows toolbar buttons. r=ben sr=hyatt

This commit is contained in:
rjc%netscape.com 2006-09-14 06:01:29 +00:00
parent b91e457036
commit 7e13aa622f
2 changed files with 6 additions and 32 deletions

View File

@ -1,32 +1,3 @@
/* ::::::::::
:: Rules for 'hiding' portions of the chrome for special
:: kinds of browser windows.
::::: */
window[chromehidden~="menubar"] .chromeclass-menubar {
display: none;
}
window[chromehidden~="toolbar"] .chromeclass-toolbar {
display: none;
}
window[chromehidden~="location"] .chromeclass-location {
display: none;
}
window[chromehidden~="directories"] .chromeclass-directories {
display: none;
}
window[chromehidden~="status"] .chromeclass-status {
display: none;
}
window[chromehidden~="extrachrome"] .chromeclass-extrachrome {
display: none;
}
/* ::::: Hide the link toolbar if it is set to autohide and has no items. ::::: */
#linktoolbar[hidden="maybe"][hasitems="false"]

View File

@ -875,7 +875,8 @@ function BrowserEditBookmarks()
if (!gDisableBookmarks) {
gDisableBookmarks = true;
open("chrome://communicator/content/bookmarks/bookmarks.xul", "_blank", "chrome,menubar,resizable,scrollbars");
open("chrome://communicator/content/bookmarks/bookmarks.xul", "_blank",
"chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar");
setTimeout(enableBookmarks, 2000);
}
}
@ -1081,12 +1082,14 @@ function readFromClipboard()
function OpenMessenger()
{
open("chrome://messenger/content/messenger.xul", "_blank", "chrome,menubar,toolbar,resizable");
open("chrome://messenger/content/messenger.xul", "_blank",
"chrome,extrachrome,menubar,resizable,status,toolbar");
}
function OpenAddressbook()
{
open("chrome://messenger/content/addressbook/addressbook.xul", "_blank", "chrome,menubar,toolbar,resizable");
open("chrome://messenger/content/addressbook/addressbook.xul", "_blank",
"chrome,extrachrome,menubar,resizable,status,toolbar");
}
var gFullScreen = false;