Bug 1267025 - Fix paragraph handling for ForwardAsAttachment (branches only). r=jorgk a=rkent
authorrsx11m <rsx11m.pub@gmail.com>
Sat, 23 Apr 2016 09:22:09 -0500
changeset 26929 016eb6f08b283ac2554552fd14c9df5c6dfb0710
parent 26928 ac85104a1d235d2933d4058c49571f041919ba06
child 26930 57fddbdfd40d54787e7137f75115fef1cd5a553e
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, rkent
bugs1267025
Bug 1267025 - Fix paragraph handling for ForwardAsAttachment (branches only). r=jorgk a=rkent
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");