зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a9dcb76cf3
Коммит
3cd31353c3
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче