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

--HG--
extra : transplant_source : %B2x%B4%F6%AB%CA%97A%D1%FE%A0%A7xU%C5%CBv%FD%C9%80
This commit is contained in:
Xidorn Quan 2015-10-23 18:13:02 +11:00
Родитель 4befdd85f0
Коммит c7021ea00d
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: {