Bug 1520040 - Follow-up: use MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION for function definitions. r=me
authorJorg K <jorgk@jorgk.com>
Fri, 18 Jan 2019 00:28:20 +0100
changeset 33378 a55410ab6adbbf914a2e19a3655251ec78b5f995
parent 33377 62bb4eeba6e4bf1e82d4384ba6e3e20faa32b615
child 33379 d82803b48feb33e6f41cb1d5cb36e56b91a13c7d
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1520040
Bug 1520040 - Follow-up: use MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION for function definitions. r=me
mailnews/compose/src/nsMsgComposeService.cpp
--- a/mailnews/compose/src/nsMsgComposeService.cpp
+++ b/mailnews/compose/src/nsMsgComposeService.cpp
@@ -235,17 +235,17 @@ nsMsgComposeService::DetermineComposeHTM
         }
       }
       break;
   }
 
   return NS_OK;
 }
 
-MOZ_CAN_RUN_SCRIPT nsresult
+MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION nsresult
 nsMsgComposeService::GetOrigWindowSelection(MSG_ComposeType type, nsIMsgWindow *aMsgWindow, nsACString& aSelHTML)
 {
   nsresult rv;
 
   // Good hygiene
   aSelHTML.Truncate();
 
   // Get the pref to see if we even should do reply quoting selection
@@ -353,17 +353,17 @@ nsMsgComposeService::GetOrigWindowSelect
     spanInd = html.Find("<span class=\"moz-txt-citetags\">");
   }
 
   aSelHTML.Assign(html);
 
   return rv;
 }
 
-MOZ_CAN_RUN_SCRIPT NS_IMETHODIMP
+MOZ_CAN_RUN_SCRIPT_FOR_DEFINITION NS_IMETHODIMP
 nsMsgComposeService::OpenComposeWindow(const char *msgComposeWindowURL, nsIMsgDBHdr *origMsgHdr, const char *originalMsgURI,
   MSG_ComposeType type, MSG_ComposeFormat format, nsIMsgIdentity * aIdentity, nsIMsgWindow *aMsgWindow)
 {
   nsresult rv;
 
   // Check for any reply type that wants to ignore the quote.
   bool ignoreQuote = false;
   if (type >= nsIMsgCompType::ReplyIgnoreQuote) {