Backed out changeset 437beb1efdd2 (bug 1882670) for causing web platform failures CLOSED TREE
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user