Bug 1584031 - Pass load flags to NS_NewChannelInternal in ContentChild in the same way we do in DocumentChannelChild. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D54222

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2019-11-26 03:19:13 +00:00
parent 176a1755ea
commit a4c0f4ca76

View File

@ -3675,7 +3675,11 @@ mozilla::ipc::IPCResult ContentChild::RecvCrossProcessRedirect(
}
nsCOMPtr<nsIChannel> newChannel;
rv = NS_NewChannelInternal(getter_AddRefs(newChannel), aArgs.uri(), loadInfo);
rv = NS_NewChannelInternal(getter_AddRefs(newChannel), aArgs.uri(), loadInfo,
nullptr, // PerformanceStorage
nullptr, // aLoadGroup
nullptr, // aCallbacks
aArgs.newLoadFlags());
RefPtr<nsIChildChannel> childChannel = do_QueryObject(newChannel);
if (NS_FAILED(rv) || !childChannel) {