Index: third_party/WebKit/Source/core/loader/BaseFetchContext.cpp |
diff --git a/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp b/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp |
index 7134f9cfb4d51349a7bc472347142dbb5a177979..748ae933ccb7700b068a49eff7a563c9c8567918 100644 |
--- a/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp |
@@ -186,8 +186,10 @@ ResourceRequestBlockedReason BaseFetchContext::CanRequestInternal( |
if (origin_restriction != FetchParameters::kNoOriginRestriction && |
security_origin && !security_origin->CanDisplay(url)) { |
- if (reporting_policy == SecurityViolationReportingPolicy::kReport) |
- ReportLocalLoadFailed(url); |
+ if (reporting_policy == SecurityViolationReportingPolicy::kReport) { |
+ AddConsoleMessage("Not allowed to load local resource: " + |
+ url.GetString()); |
+ } |
RESOURCE_LOADING_DVLOG(1) << "ResourceFetcher::requestResource URL was not " |
"allowed by SecurityOrigin::CanDisplay"; |
return ResourceRequestBlockedReason::kOther; |