From 812edc7230bff5c0d01f664c5b2f3621487ffe0d Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Sun, 21 Sep 2014 09:36:50 -0700 Subject: [PATCH] Bug 1038756: Callsites creating a channel in content/base/ImportManager (r=gkrizsanits) --- content/base/src/ImportManager.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/content/base/src/ImportManager.cpp b/content/base/src/ImportManager.cpp index fc093375cebb..a539b3dd27f7 100644 --- a/content/base/src/ImportManager.cpp +++ b/content/base/src/ImportManager.cpp @@ -242,11 +242,14 @@ ImportLoader::Open() nsCOMPtr channel; rv = NS_NewChannel(getter_AddRefs(channel), mURI, - /* ioService = */ nullptr, + mImportParent, + nsILoadInfo::SEC_NORMAL, + nsIContentPolicy::TYPE_SUBDOCUMENT, + channelPolicy, loadGroup, - /* callbacks = */ nullptr, - nsIRequest::LOAD_BACKGROUND, - channelPolicy); + nullptr, // aCallbacks + nsIRequest::LOAD_BACKGROUND); + NS_ENSURE_SUCCESS_VOID(rv); // Init CORSListenerProxy and omit credentials.