summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-27 15:58:24 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-27 15:58:24 +0300
commit214690eadd4675855233c286a158ebf89d4cbebb (patch)
tree5c7cfb42e203907f533acd65759d44f0f23a7806 /application/palemoon
parentc82c6d960a7f19d6595171f9705c43514f20c1ec (diff)
downloadUXP-214690eadd4675855233c286a158ebf89d4cbebb.tar
UXP-214690eadd4675855233c286a158ebf89d4cbebb.tar.gz
UXP-214690eadd4675855233c286a158ebf89d4cbebb.tar.lz
UXP-214690eadd4675855233c286a158ebf89d4cbebb.tar.xz
UXP-214690eadd4675855233c286a158ebf89d4cbebb.zip
Provide LoadInfo for NewChannel() call in 'about' protocol handler
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/components/about/AboutRedirector.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/application/palemoon/components/about/AboutRedirector.cpp b/application/palemoon/components/about/AboutRedirector.cpp
index d52b873b9..27f6540b2 100644
--- a/application/palemoon/components/about/AboutRedirector.cpp
+++ b/application/palemoon/components/about/AboutRedirector.cpp
@@ -137,8 +137,13 @@ AboutRedirector::NewChannel(nsIURI* aURI,
for (int i = 0; i < kRedirTotal; i++) {
if (!strcmp(path.get(), kRedirMap[i].id)) {
nsCOMPtr<nsIChannel> tempChannel;
- rv = ioService->NewChannel(nsDependentCString(kRedirMap[i].url),
- nullptr, nullptr, getter_AddRefs(tempChannel));
+ nsCOMPtr<nsIURI> tempURI;
+ rv = NS_NewURI(getter_AddRefs(tempURI),
+ nsDependentCString(kRedirMap[i].url));
+ NS_ENSURE_SUCCESS(rv, rv);
+ rv = NS_NewChannelInternal(getter_AddRefs(tempChannel),
+ tempURI,
+ aLoadInfo);
NS_ENSURE_SUCCESS(rv, rv);
tempChannel->SetOriginalURI(aURI);