summaryrefslogtreecommitdiffstats
path: root/dom/base/nsFrameLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsFrameLoader.cpp')
-rw-r--r--dom/base/nsFrameLoader.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp
index 79c889596..b4397d063 100644
--- a/dom/base/nsFrameLoader.cpp
+++ b/dom/base/nsFrameLoader.cpp
@@ -3102,14 +3102,6 @@ nsFrameLoader::ApplySandboxFlags(uint32_t sandboxFlags)
// The child can only add restrictions, never remove them.
sandboxFlags |= parentSandboxFlags;
- // If this frame is a receiving browsing context, we should add
- // sandboxed auxiliary navigation flag to sandboxFlags. See
- // https://w3c.github.io/presentation-api/#creating-a-receiving-browsing-context
- nsAutoString presentationURL;
- nsContentUtils::GetPresentationURL(mDocShell, presentationURL);
- if (!presentationURL.IsEmpty()) {
- sandboxFlags |= SANDBOXED_AUXILIARY_NAVIGATION;
- }
mDocShell->SetSandboxFlags(sandboxFlags);
}
}
@@ -3427,11 +3419,6 @@ nsFrameLoader::GetNewTabContext(MutableTabContext* aTabContext,
rv = PopulateUserContextIdFromAttribute(attrs);
NS_ENSURE_SUCCESS(rv, rv);
- nsAutoString presentationURLStr;
- mOwnerContent->GetAttr(kNameSpaceID_None,
- nsGkAtoms::mozpresentation,
- presentationURLStr);
-
nsCOMPtr<nsIDocShell> docShell = mOwnerContent->OwnerDoc()->GetDocShell();
nsCOMPtr<nsILoadContext> parentContext = do_QueryInterface(docShell);
NS_ENSURE_STATE(parentContext);
@@ -3459,8 +3446,7 @@ nsFrameLoader::GetNewTabContext(MutableTabContext* aTabContext,
containingApp,
showAccelerators,
showFocusRings,
- attrs,
- presentationURLStr);
+ attrs);
NS_ENSURE_STATE(tabContextUpdated);
return NS_OK;