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

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

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: +comment 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 bee375f732ad8ddc1d221824af28670af6667ed7..91b1f79ae316d06c5b6ffd5ed3e7b624bb013496 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
@@ -336,11 +336,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