Only display permission prompts when they are anchored to the right icon (
bug 1296252)
MozReview-Commit-ID: JqY9sCfoxGo
--- a/toolkit/modules/PopupNotifications.jsm
+++ b/toolkit/modules/PopupNotifications.jsm
@@ -725,16 +725,20 @@ PopupNotifications.prototype = {
popupnotification.hidden = false;
}, this);
},
_showPanel: function PopupNotifications_showPanel(notificationsToShow, anchorElement) {
this.panel.hidden = false;
notificationsToShow = notificationsToShow.filter(n => {
+ if (anchorElement != n.anchorElement) {
+ return false;
+ }
+
let dismiss = this._fireCallback(n, NOTIFICATION_EVENT_SHOWING);
if (dismiss)
n.dismissed = true;
return !dismiss;
});
if (!notificationsToShow.length)
return;