diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-04-27 15:58:24 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-04-27 15:58:24 +0300 |
commit | 214690eadd4675855233c286a158ebf89d4cbebb (patch) | |
tree | 5c7cfb42e203907f533acd65759d44f0f23a7806 /application/palemoon/components | |
parent | c82c6d960a7f19d6595171f9705c43514f20c1ec (diff) | |
download | UXP-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/components')
-rw-r--r-- | application/palemoon/components/about/AboutRedirector.cpp | 9 |
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); |