Commit c7a62a77 authored by Frederik Braun's avatar Frederik Braun
Browse files

Bug 1738418 - set sandboxflags for object/embed loads correctly...

Bug 1738418 - set sandboxflags for object/embed loads correctly r=ckerschb,smaug,necko-reviewers a=pascalc

Depends on D130958

Differential Revision: https://phabricator.services.mozilla.com/D130959
parent f34a7b9e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1839,6 +1839,8 @@ nsresult nsObjectLoadingContent::OpenChannel() {
    if (cspToInherit) {
      loadState->SetCsp(cspToInherit);
    }
    loadState->SetTriggeringSandboxFlags(sandboxFlags);

    // TODO(djg): This was httpChan->SetReferrerInfoWithoutClone(referrerInfo);
    // Is the ...WithoutClone(...) important?
    auto referrerInfo = MakeRefPtr<ReferrerInfo>(*doc);
+1 −1
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ auto DocumentLoadListener::OpenObject(

  MOZ_ASSERT(!mIsDocumentLoad);

  auto sandboxFlags = GetLoadingBrowsingContext()->GetSandboxFlags();
  auto sandboxFlags = aLoadState->TriggeringSandboxFlags();

  RefPtr<LoadInfo> loadInfo = CreateObjectLoadInfo(
      aLoadState, aInnerWindowId, aContentPolicyType, sandboxFlags);