Bug 1067367 - tapping the icon of a second doorhanger reopens the first doorhanger if it was already open, r=Enn.

This commit is contained in:
Florian Quèze 2014-09-29 15:33:34 +02:00
Родитель 3a7427d581
Коммит 550cbe5a37
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -488,9 +488,15 @@ PopupNotifications.prototype = {
* Hides the notification popup.
*/
_hidePanel: function PopupNotifications_hide() {
// We need to disable the closing animation when setting _ignoreDismissal
// to true, otherwise the popuphidden event will fire after we have set
// _ignoreDismissal back to false.
let transitionsEnabled = this.transitionsEnabled;
this.transitionsEnabled = false;
this._ignoreDismissal = true;
this.panel.hidePopup();
this._ignoreDismissal = false;
this.transitionsEnabled = transitionsEnabled;
},
/**