Bug 682183 - compose window is not noticing attachment keywords r=bwinton a=Standard8
authorJason Yeo <jasonyeo88@gmail.com>
Thu, 22 Sep 2011 22:16:34 +0200
changeset 8856 bed118c12fa59970c6cb162ab59d73580c79aad2
parent 8855 567184a444a229379883e29fb420f2eccb05d6e0
child 8857 ab0cc674e75ece65767c1274e6c8b1ab7abaf36e
push idunknown
push userunknown
push dateunknown
reviewersbwinton, Standard8
bugs682183
Bug 682183 - compose window is not noticing attachment keywords r=bwinton a=Standard8
mail/base/modules/attachmentChecker.js
--- a/mail/base/modules/attachmentChecker.js
+++ b/mail/base/modules/attachmentChecker.js
@@ -96,14 +96,14 @@ function GetAttachmentKeywords(mailData,
     if (matching && !(/^http|^ftp/i.test(matching[0])))
       // We're not worried about matching too much because we only add the
       // keyword to the list of found keywords.
       keywordsFound.push(keywordsArray[i]);
   }
   return keywordsFound;
 }
 
-function onmessage(event)
+onmessage = function(event)
 {
   var keywordsFound = GetAttachmentKeywords(event.data[0], event.data[1]);
   postMessage(keywordsFound);
 };