summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-28 08:23:08 +0200
committerGitHub <noreply@github.com>2018-04-28 08:23:08 +0200
commit46a069ec79c9342dc1bb1c2f1b450dad412aeb3f (patch)
treeab96a5c7efabcfcb9aca54b82755697d36dad96b /application/palemoon
parentc75dae3ed21bfa5a8ae46cd83d18329af5bea05a (diff)
parent214690eadd4675855233c286a158ebf89d4cbebb (diff)
downloadUXP-46a069ec79c9342dc1bb1c2f1b450dad412aeb3f.tar
UXP-46a069ec79c9342dc1bb1c2f1b450dad412aeb3f.tar.gz
UXP-46a069ec79c9342dc1bb1c2f1b450dad412aeb3f.tar.lz
UXP-46a069ec79c9342dc1bb1c2f1b450dad412aeb3f.tar.xz
UXP-46a069ec79c9342dc1bb1c2f1b450dad412aeb3f.zip
Merge pull request #274 from JustOff/PR_AboutRedirector_NewChannel_LoadInfo
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);