Bug 1364977 - Followup fix for older parameters in branches. rs=bustage-fix a=me SEA248b1_2017021701_RELBRANCH
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 06 Jun 2017 10:15:42 +0200
branchSEA248b1_2017021701_RELBRANCH
changeset 31408 156fd1a6486a07df761b712c01621a37716f36b2
parent 31407 9f4f453bf5bc557422d7f25bc48522f1eb1ad5c3
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix, me
bugs1364977
Bug 1364977 - Followup fix for older parameters in branches. rs=bustage-fix a=me
suite/mailnews/compose/MsgComposeCommands.js
--- a/suite/mailnews/compose/MsgComposeCommands.js
+++ b/suite/mailnews/compose/MsgComposeCommands.js
@@ -2487,23 +2487,23 @@ function OpenSelectedAttachment()
     if (messagePrefix.test(attachmentUrl)) {
       // We must be dealing with a forwarded attachment, treat this special.
       let msgHdr = gMessenger.msgHdrFromURI(attachmentUrl);
       if (msgHdr) {
         MailUtils.openMessageInNewWindow(msgHdr);
       }
     } else {
       // Turn the URL into a nsIURI object then open it.
-      let uri = Services.io.newURI(attachmentUrl);
+      let uri = Services.io.newURI(attachmentUrl, null, null);
       if (uri) {
         let channel = Services.io.newChannelFromURI2(uri,
                                                      null,
                                                      Services.scriptSecurityManager.getSystemPrincipal(),
                                                      null,
-                                                     Components.interfaces.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
+                                                     Components.interfaces.nsILoadInfo.SEC_NORMAL,
                                                      Components.interfaces.nsIContentPolicy.TYPE_OTHER);
         if (channel) {
           let uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader);
           uriLoader.openURI(channel, true, new nsAttachmentOpener());
         }
       }
     }
   } // if one attachment selected