Backed out changeset d232f991af6a (bug 1882670) for causing cdp failures at frame.spec.js CLOSED TREE
This commit is contained in:
@@ -10049,14 +10049,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())) {
|
||||
// Per spec, reload doesn't cacel lazy loading iframes.
|
||||
if (!(aLoadState->LoadType() & LOAD_RELOAD_NORMAL)) {
|
||||
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