Bug 882188 - Popup notifications in background windows should only ask for attention if they'll open automatically upon gaining focus. r=gavin

This commit is contained in:
Dão Gottwald 2013-06-13 19:18:53 +02:00
Родитель a9dcb76cf3
Коммит 3cd31353c3
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -264,7 +264,8 @@ PopupNotifications.prototype = {
// tell the user that there's a notification waiting in that window.
// At some point we might want to do something about background tabs here
// too.
if (browser == this.tabbrowser.selectedBrowser)
if (!notification.dismissed &&
browser == this.tabbrowser.selectedBrowser)
this.window.getAttention();
// Notify observers that we're not showing the popup (useful for testing)