Bug 1550945 - Part 7: Correction of nsMailboxService::NewChannel(), hint by :emk. r=me
authorJorg K <jorgk@jorgk.com>
Thu, 30 May 2019 08:35:35 +0200
changeset 35720 aff89fb3045ea88de39bb83d6006a2387c37cea7
parent 35719 f3f918aef481478ead0a6ee94467b43f0e90cb5e
child 35721 bfac42da27a2dc34ba30781fc08bd97155933fdc
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersme
bugs1550945
Bug 1550945 - Part 7: Correction of nsMailboxService::NewChannel(), hint by :emk. r=me
mailnews/local/src/nsMailboxService.cpp
--- a/mailnews/local/src/nsMailboxService.cpp
+++ b/mailnews/local/src/nsMailboxService.cpp
@@ -14,16 +14,17 @@
 #include "nsMsgDBCID.h"
 #include "MailNewsTypes.h"
 #include "nsTArray.h"
 #include "nsLocalUtils.h"
 #include "nsMsgLocalCID.h"
 #include "nsMsgBaseCID.h"
 #include "nsIDocShell.h"
 #include "nsMsgUtils.h"
+#include "nsPop3Service.h"
 #include "nsNativeCharsetUtils.h"
 #include "nsNetUtil.h"
 #include "nsIWebNavigation.h"
 #include "prprf.h"
 #include "nsIMsgHdr.h"
 #include "nsIFileURL.h"
 #include "mozilla/RefPtr.h"
 #include "nsDocShellLoadState.h"
@@ -538,17 +539,18 @@ NS_IMETHODIMP nsMailboxService::NewChann
   NS_ENSURE_SUCCESS(rv, rv);
 
   if (spec.Find("?uidl=") >= 0 || spec.Find("&uidl=") >= 0) {
     nsCOMPtr<nsIProtocolHandler> handler =
         do_GetService(NS_POP3SERVICE_CONTRACTID1, &rv);
     if (NS_SUCCEEDED(rv)) {
       nsCOMPtr<nsIURI> pop3Uri;
 
-      rv = NewURI(spec, "" /* ignored */, aURI, getter_AddRefs(pop3Uri));
+      rv = nsPop3Service::NewURI(spec, "" /* ignored */, aURI,
+                                 getter_AddRefs(pop3Uri));
       NS_ENSURE_SUCCESS(rv, rv);
       return handler->NewChannel(pop3Uri, aLoadInfo, _retval);
     }
   }
 
   RefPtr<nsMailboxProtocol> protocol = new nsMailboxProtocol(aURI);
   if (!protocol) {
     return NS_ERROR_OUT_OF_MEMORY;