Index: Source/core/frame/csp/CSPDirectiveList.cpp |
diff --git a/Source/core/frame/csp/CSPDirectiveList.cpp b/Source/core/frame/csp/CSPDirectiveList.cpp |
index 80d7006f910b01d1508971ae8d33dd5679d9dba5..08dbac4e332304a7ba33d8ca8c0aa60bc904f7c1 100644 |
--- a/Source/core/frame/csp/CSPDirectiveList.cpp |
+++ b/Source/core/frame/csp/CSPDirectiveList.cpp |
@@ -60,7 +60,7 @@ void CSPDirectiveList::reportViolationWithLocation(const String& directiveText, |
void CSPDirectiveList::reportViolationWithState(const String& directiveText, const String& effectiveDirective, const String& message, const KURL& blockedURL, ScriptState* scriptState) const |
{ |
String reportMessage = m_reportOnly ? "[Report Only] " + message : message; |
- RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, reportMessage); |
+ RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, reportMessage); |
consoleMessage->setScriptState(scriptState); |
m_policy->executionContext()->addConsoleMessage(consoleMessage.release()); |
m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportURIs, m_header); |