Bug 1571287 - Add isShowingJunkNotification for LookOut add-on. DONTBUILD r=IanN a=IanN SEAMONKEY_2_49_ESR_RELBRANCH tip
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 11 Aug 2019 14:07:35 +0200
branchSEAMONKEY_2_49_ESR_RELBRANCH
changeset 28337 799f475c3fc52cfc9eb8c3d5b87e7a0006790b7b
parent 28336 6b30146aa4117616f2570fe192eaad1938fa5416
push id2137
push userfrgrahl@gmx.net
push dateSun, 11 Aug 2019 12:08:18 +0000
treeherdercomm-esr52@799f475c3fc5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1571287
Bug 1571287 - Add isShowingJunkNotification for LookOut add-on. DONTBUILD r=IanN a=IanN SeaMonkey 2.49.5 Version.
suite/mailnews/mailWindowOverlay.js
--- a/suite/mailnews/mailWindowOverlay.js
+++ b/suite/mailnews/mailWindowOverlay.js
@@ -2600,16 +2600,20 @@ var gMessageNotificationBar =
           null, this.mMsgNotificationBar.PRIORITY_WARNING_HIGH, buttons);
         this.mMsgNotificationBar.collapsed = false;
       }
     }
   },
 
   remoteOrigins: null,
 
+  isShowingJunkNotification: function() {
+    return !!this.mMsgNotificationBar.getNotificationWithValue("junkContent");
+  },
+
   setRemoteContentMsg: function(aMsgHdr, aContentURI, aCanOverride)
   {
     // remoteOrigins is a Set of all blockable Origins.
     if (!this.remoteOrigins)
       this.remoteOrigins = new Set();
 
     var origin = aContentURI.spec;
     try