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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.cpp

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Created 3 years, 8 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/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))
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698