mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
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:
parent
b91e457036
commit
7e13aa622f
@ -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"]
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user