mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #1390 - Clean up presentation api leftovers
This commit is contained in:
parent
a828a5f321
commit
d4324dc064
9 changed files with 6 additions and 134 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue