diff --git a/toolkit/modules/PopupNotifications.jsm b/toolkit/modules/PopupNotifications.jsm index 7105c1a4f7..561c630e27 100644 --- a/toolkit/modules/PopupNotifications.jsm +++ b/toolkit/modules/PopupNotifications.jsm @@ -165,6 +165,7 @@ this.PopupNotifications = function PopupNotifications(tabbrowser, panel, iconBox this.buttonDelay = Services.prefs.getIntPref(PREF_SECURITY_DELAY); this.panel.addEventListener("popuphidden", this, true); + this.panel.addEventListener("popuppositioned", this, true); this.window.addEventListener("activate", this, true); if (this.tabbrowser.tabContainer) @@ -475,6 +476,7 @@ PopupNotifications.prototype = { this._onPopupHidden(aEvent); break; case "activate": + case "popuppositioned": case "TabSelect": let self = this; // setTimeout(..., 0) needed, otherwise openPopup from "activate" event