Bug 837640 - global notifications should be hidden during print preview. r=felipe

This commit is contained in:
Dão Gottwald 2013-02-05 10:30:21 +01:00
Родитель 286aae4699
Коммит 48e8e0cdf9
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -3000,6 +3000,10 @@ var PrintPreviewListener = {
if (gFindBarInitialized)
gFindBar.close();
var globalNotificationBox = document.getElementById("global-notificationbox");
this._chromeState.globalNotificationsOpen = !globalNotificationBox.notificationsHidden;
globalNotificationBox.notificationsHidden = true;
this._chromeState.syncNotificationsOpen = false;
var syncNotifications = document.getElementById("sync-notifications");
if (syncNotifications) {
@ -3019,6 +3023,9 @@ var PrintPreviewListener = {
if (this._chromeState.findOpen)
gFindBar.open();
if (this._chromeState.globalNotificationsOpen)
document.getElementById("global-notificationbox").notificationsHidden = false;
if (this._chromeState.syncNotificationsOpen)
document.getElementById("sync-notifications").notificationsHidden = false;
}