Bug 1267025 - Fix paragraph handling for ForwardAsAttachment (branches only). r=jorgk a=jorgk
authorrsx11m <rsx11m.pub@gmail.com>
Sat, 23 Apr 2016 09:22:09 -0500
changeset 24492 f2494750025ac9e4654dab05b174a27b973a4a8f
parent 24491 9b70b2cfee4d4b972f84611ead37b9427413d4e7
child 24493 1549ca7806d2dd9e3ea78a0932fb43e9fc614681
push id1623
push userclokep@gmail.com
push dateMon, 25 Apr 2016 14:53:28 +0000
treeherdercomm-beta@25267c20666e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, jorgk
bugs1267025
Bug 1267025 - Fix paragraph handling for ForwardAsAttachment (branches only). r=jorgk a=jorgk
mail/components/compose/content/cloudAttachmentLinkManager.js
--- a/mail/components/compose/content/cloudAttachmentLinkManager.js
+++ b/mail/components/compose/content/cloudAttachmentLinkManager.js
@@ -35,16 +35,17 @@ var gCloudAttachmentLinkManager = {
   NotifyComposeFieldsReady: function() {},
 
   NotifyComposeBodyReady: function() {
 
     // Look all the possible compose typed (nsIMsgComposeParams.idl):
     switch (gComposeType) {
 
     case Components.interfaces.nsIMsgCompType.New:
+    case Components.interfaces.nsIMsgCompType.ForwardAsAttachment:
       this.NotifyComposeBodyReadyNew();
       return;
 
     case Components.interfaces.nsIMsgCompType.Reply:
     case Components.interfaces.nsIMsgCompType.ReplyAll:
     case Components.interfaces.nsIMsgCompType.ReplyToSender:
     case Components.interfaces.nsIMsgCompType.ReplyToGroup:
     case Components.interfaces.nsIMsgCompType.ReplyToSenderAndGroup:
@@ -52,17 +53,16 @@ var gCloudAttachmentLinkManager = {
     case Components.interfaces.nsIMsgCompType.ReplyToList:
       this.NotifyComposeBodyReadyReply();
       return;
 
     case Components.interfaces.nsIMsgCompType.ForwardInline:
       this.NotifyComposeBodyReadyForwardInline();
       return;
 
-    case Components.interfaces.nsIMsgCompType.ForwardAsAttachment:
     case Components.interfaces.nsIMsgCompType.Draft:
     case Components.interfaces.nsIMsgCompType.Template:
     case Components.interfaces.nsIMsgCompType.MailToUrl:
     case Components.interfaces.nsIMsgCompType.Redirect:
       return;
     default:
       dump("Unexpected nsIMsgCompType in NotifyComposeBodyReady (" +
            gComposeType + ")\n");