From b72a62729ce2b2f155a77c26a149aa93ec17cc7d Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 27 Nov 2019 02:20:01 +0000 Subject: [PATCH] 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 --- dom/ipc/ContentChild.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index dd6207404eef..8a2f8ccb8043 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -3675,7 +3675,11 @@ mozilla::ipc::IPCResult ContentChild::RecvCrossProcessRedirect( } nsCOMPtr 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 childChannel = do_QueryObject(newChannel); if (NS_FAILED(rv) || !childChannel) {