Bug 1192683 - Retry hiding toolbox when some of safe-to-collapse conditions change. r=dao

--HG--
extra : rebase_source : 180b080e57ad3533f21f4eaaab0dfc6bb0cd600a
This commit is contained in:
Xidorn Quan 2015-10-23 18:13:02 +11:00
Родитель d63ebb97cd
Коммит 623600e3a4
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -307,8 +307,11 @@ var FullScreen = {
aEvent.target.localName != "tooltip" && aEvent.target.localName != "window")
FullScreen._isPopupOpen = true;
else if (aEvent.type == "popuphidden" && aEvent.target.localName != "tooltip" &&
aEvent.target.localName != "window")
aEvent.target.localName != "window") {
FullScreen._isPopupOpen = false;
// Try again to hide toolbar when we close the popup.
FullScreen.hideNavToolbox(true);
}
},
// Autohide helpers for the context menu item
@ -319,6 +322,8 @@ var FullScreen = {
setAutohide: function()
{
gPrefService.setBoolPref("browser.fullscreen.autohide", !gPrefService.getBoolPref("browser.fullscreen.autohide"));
// Try again to hide toolbar when we change the pref.
FullScreen.hideNavToolbox(true);
},
_WarningBox: {