Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Revert ResourceLoader changes, handle main resource redirect in DocumentLoader Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
index 8cdc71dbe282ba0e2de74b79f04fa3e3970d9dab..cb56a1bb7f6505e3bde9b3123eec94ae7fe303b3 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
@@ -339,11 +339,6 @@ bool HTMLFrameOwnerElement::LoadOrRedirectSubframe(
return true;
}
- if (!GetDocument().GetSecurityOrigin()->CanDisplay(url)) {
- FrameLoader::ReportLocalLoadFailed(parent_frame, url.GetString());
- return false;
- }
-
if (!SubframeLoadingDisabler::CanLoadFrame(*this))
return false;

Powered by Google App Engine
This is Rietveld 408576698