diff --git a/toolkit/modules/PopupNotifications.sys.mjs b/toolkit/modules/PopupNotifications.sys.mjs index 37f588bb17ffa87b738dfc503de3ca98a49f4a76..ca513466256f44784c84eb320fd52b6de29c3339 100644 --- a/toolkit/modules/PopupNotifications.sys.mjs +++ b/toolkit/modules/PopupNotifications.sys.mjs @@ -245,6 +245,7 @@ export function PopupNotifications(tabbrowser, panel, iconBox, options = {}) { this.iconBox = iconBox; this.panel.addEventListener("popuphidden", this, true); + this.panel.addEventListener("popuppositioned", this); this.panel.classList.add("popup-notification-panel", "panel-no-padding"); // This listener will be attached to the chrome window whenever a notification @@ -813,6 +814,7 @@ PopupNotifications.prototype = { this._onPopupHidden(aEvent); break; case "activate": + case "popuppositioned": if (this.isPanelOpen) { for (let elt of this.panel.children) { elt.notification.timeShown = Math.max(