--- a/toolkit/modules/PopupNotifications.jsm+++ b/toolkit/modules/PopupNotifications.jsm@@ -560,16 +560,18 @@ PopupNotifications.prototype = { }, handleEvent(aEvent) { switch (aEvent.type) { case "popuphidden": this._onPopupHidden(aEvent); break; case "activate":+ if (this.isPanelOpen)+ break; case "TabSelect": let self = this; // This is where we could detect if the panel is dismissed if the page // was switched. Unfortunately, the user usually has clicked elsewhere // at this point so this value only gets recorded for programmatic // reasons, like the "Learn More" link being clicked and resulting in a // tab switch. this.nextDismissReason = TELEMETRY_STAT_DISMISSAL_LEAVE_PAGE;