Bug 1619914 - mark AddMarkAllReadUndoAction with MOZ_CAN_RUN_SCRIPT to make Thunderbird build again. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Sat, 04 Apr 2020 15:23:36 +0300
changeset 38684 f511a27de53a2c36c9fcb7b0f6488a277ee18b6f
parent 38683 588fc64ebcb0946ba09005e4de0bea4019a27392
child 38685 0d3828ea7422b578c0683a2b28d86ee0e8257f80
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersbustage-fix
bugs1619914
Bug 1619914 - mark AddMarkAllReadUndoAction with MOZ_CAN_RUN_SCRIPT to make Thunderbird build again. rs=bustage-fix
mailnews/base/util/nsMsgDBFolder.h
--- a/mailnews/base/util/nsMsgDBFolder.h
+++ b/mailnews/base/util/nsMsgDBFolder.h
@@ -173,18 +173,19 @@ class NS_MSG_BASE nsMsgDBFolder : public
   nsresult AutoCompact(nsIMsgWindow *aWindow);
   // this is a helper routine that ignores whether nsMsgMessageFlags::Offline is
   // set for the folder
   nsresult MsgFitsDownloadCriteria(nsMsgKey msgKey, bool *result);
   nsresult GetPromptPurgeThreshold(bool *aPrompt);
   nsresult GetPurgeThreshold(int32_t *aThreshold);
   nsresult ApplyRetentionSettings(bool deleteViaFolder);
   bool VerifyOfflineMessage(nsIMsgDBHdr *msgHdr, nsIInputStream *fileStream);
-  nsresult AddMarkAllReadUndoAction(nsIMsgWindow *msgWindow,
-                                    nsMsgKey *thoseMarked, uint32_t numMarked);
+  MOZ_CAN_RUN_SCRIPT nsresult AddMarkAllReadUndoAction(nsIMsgWindow *msgWindow,
+                                                       nsMsgKey *thoseMarked,
+                                                       uint32_t numMarked);
 
   nsresult PerformBiffNotifications(
       void);  // if there are new, non spam messages, do biff
   nsresult CloseDBIfFolderNotOpen();
 
   // Helper function for Move code to call to update the MRU and MRM time.
   void UpdateTimestamps(bool allowUndo);
   void SetMRUTime();