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

Unified Diff: Source/core/frame/csp/ContentSecurityPolicy.cpp

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 years, 4 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: Source/core/frame/csp/ContentSecurityPolicy.cpp
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp
index 7f6566652906bce1aa84d615765e252285c885cf..d06f0afb7cbc83840918a7ad298796d62ccb172c 100644
--- a/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -39,6 +39,7 @@
#include "core/frame/csp/CSPSourceList.h"
#include "core/frame/csp/MediaListDirective.h"
#include "core/frame/csp/SourceListDirective.h"
+#include "core/inspector/ConsoleMessage.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/ScriptCallStack.h"
#include "core/loader/DocumentLoader.h"
@@ -758,7 +759,7 @@ void ContentSecurityPolicy::reportMissingReportURI(const String& policy) const
void ContentSecurityPolicy::logToConsole(const String& message, MessageLevel level) const
{
- m_executionContext->addConsoleMessage(SecurityMessageSource, level, message);
+ m_executionContext->addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, level, message));
}
void ContentSecurityPolicy::reportBlockedScriptExecutionToInspector(const String& directiveText) const

Powered by Google App Engine
This is Rietveld 408576698