Index: third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
index 4778d3d6b1f43d4ef7453a125cae077b945738cf..edef2e497539303e0387e392c321a2e47a6983ec 100644 |
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
@@ -145,6 +145,13 @@ bool ExecutionContext::DispatchErrorEventInternal( |
return error_event->defaultPrevented(); |
} |
+void ExecutionContext::ReportLocalLoadFailed(const String& url) { |
+ DCHECK(!url.IsEmpty()); |
+ AddConsoleMessage( |
kinuko
2017/05/17 06:10:23
I think we can just call ExecutionContext::AddCons
|
+ ConsoleMessage::Create(kSecurityMessageSource, kErrorMessageLevel, |
+ "Not allowed to load local resource: " + url)); |
+} |
+ |
int ExecutionContext::CircularSequentialID() { |
++circular_sequential_id_; |
if (circular_sequential_id_ > ((1U << 31) - 1U)) |