Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 507bc7d

Browse files
committed
Bug 1583076 - Initialize cspToInherit with the loading context when deserializing. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D46739 --HG-- extra : moz-landing-system : lando
1 parent ff09d05 commit 507bc7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ipc/glue/BackgroundUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,8 @@ nsresult LoadInfoArgsToLoadInfo(
738738
Maybe<mozilla::ipc::CSPInfo> cspToInheritInfo =
739739
loadInfoArgs.cspToInheritInfo();
740740
if (cspToInheritInfo.isSome()) {
741-
cspToInherit = CSPInfoToCSP(cspToInheritInfo.ref(), nullptr);
741+
nsCOMPtr<Document> doc = do_QueryInterface(aLoadingContext);
742+
cspToInherit = CSPInfoToCSP(cspToInheritInfo.ref(), doc);
742743
}
743744

744745
RefPtr<mozilla::LoadInfo> loadInfo = new mozilla::LoadInfo(

0 commit comments

Comments
 (0)