Backed out changeset 437beb1efdd2 (bug 1882670) for causing web platform failures CLOSED TREE

This commit is contained in:
Noemi Erli
2024-08-08 00:58:01 +03:00
parent 8aa5dc0a2a
commit 0f7c979555
12 changed files with 34 additions and 72 deletions

View File

@@ -10115,11 +10115,6 @@ nsresult nsDocShell::DoURILoad(nsDocShellLoadState* aLoadState,
contentPolicyType == nsIContentPolicy::TYPE_INTERNAL_FRAME,
"DoURILoad thinks this is a frame and InternalLoad does not");
if (auto* iframe = HTMLIFrameElement::FromNodeOrNull(
mBrowsingContext->GetEmbedderElement())) {
iframe->CancelLazyLoading(true /* aClearLazyLoadState */);
}
if (StaticPrefs::dom_block_external_protocol_in_iframes()) {
// Only allow URLs able to return data in iframes.
if (nsContentUtils::IsExternalProtocol(aLoadState->URI())) {