Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - widget/ changes (r=blassey)
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Fri, 12 Dec 2014 09:08:14 -0800
changeset 232687 c4449b63bf0d958a54dfc09625edd8a8fe9f43b5
parent 232686 3ea94aed024ae94d6774f472b47ee809185ab4e7
child 232688 34a7d844138644520ed912d82965e3a6d6f64335
push idunknown
push userunknown
push dateunknown
reviewersblassey
bugs1087442
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - widget/ changes (r=blassey)
widget/android/nsAndroidProtocolHandler.cpp
--- a/widget/android/nsAndroidProtocolHandler.cpp
+++ b/widget/android/nsAndroidProtocolHandler.cpp
@@ -165,16 +165,21 @@ nsAndroidProtocolHandler::NewURI(const n
 NS_IMETHODIMP
 nsAndroidProtocolHandler::NewChannel2(nsIURI* aURI,
                                       nsILoadInfo* aLoadInfo,
                                       nsIChannel** aResult)
 {
     nsCOMPtr<nsIChannel> channel = AndroidChannel::CreateChannel(aURI);
     if (!channel)
         return NS_ERROR_FAILURE;
+
+    // set the loadInfo on the new channel
+    nsresult rv = channel->SetLoadInfo(aLoadInfo);
+    NS_ENSURE_SUCCESS(rv, rv);
+
     NS_ADDREF(*aResult = channel);
     return NS_OK;
 }
 
 NS_IMETHODIMP
 nsAndroidProtocolHandler::NewChannel(nsIURI* aURI,
                                      nsIChannel* *aResult)
 {