Bug 571813 - Hide the Firefox button in popups. r=gavin

This commit is contained in:
Dão Gottwald 2010-07-06 06:21:24 +02:00
Родитель 7b4af11d6c
Коммит 4933daad41
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4727,12 +4727,12 @@ var TabsOnTop = {
#ifdef MENUBAR_CAN_AUTOHIDE
function updateAppButtonDisplay() {
var menubarHidden =
var displayAppButton = window.menubar.visible &&
document.getElementById("toolbar-menubar").getAttribute("autohide") == "true";
document.getElementById("appmenu-button-container").hidden = !menubarHidden;
document.getElementById("appmenu-button-container").hidden = !displayAppButton;
if (menubarHidden)
if (displayAppButton)
document.documentElement.setAttribute("chromemargin", "0,-1,-1,-1");
else
document.documentElement.removeAttribute("chromemargin");