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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.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/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index 8dcdf80c71cd0b9e54ee82a75795f2111e0cfc18..b92ac1bcfeb61c2c162d02c210672c1e7cc8a79a 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -620,11 +620,6 @@ bool HTMLPlugInElement::AllowedToLoadObject(const KURL& url,
if (MIMETypeRegistry::IsJavaAppletMIMEType(mime_type))
return false;
- if (!GetDocument().GetSecurityOrigin()->CanDisplay(url)) {
- FrameLoader::ReportLocalLoadFailed(frame, url.GetString());
- return false;
- }
-
AtomicString declared_mime_type = FastGetAttribute(HTMLNames::typeAttr);
if (!GetDocument().GetContentSecurityPolicy()->AllowObjectFromSource(url) ||
!GetDocument().GetContentSecurityPolicy()->AllowPluginTypeForDocument(
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/loader/BaseFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698