Index: Source/core/frame/csp/CSPDirectiveList.cpp |
diff --git a/Source/core/frame/csp/CSPDirectiveList.cpp b/Source/core/frame/csp/CSPDirectiveList.cpp |
index 7497e539497d4ce7dca4d888a0bf7a5ee97fe7bb..792472dede5bc17eeba85e09c26d7cd8ba36f8c0 100644 |
--- a/Source/core/frame/csp/CSPDirectiveList.cpp |
+++ b/Source/core/frame/csp/CSPDirectiveList.cpp |
@@ -37,7 +37,7 @@ PassOwnPtr<CSPDirectiveList> CSPDirectiveList::create(ContentSecurityPolicy* pol |
directives->setEvalDisabledErrorMessage(message); |
} |
- if (directives->isReportOnly() && directives->reportURIs().isEmpty()) |
+ if (directives->isReportOnly() && directives->reportEndpoints().isEmpty()) |
policy->reportMissingReportURI(String(begin, end - begin)); |
return directives.release(); |
@@ -47,14 +47,14 @@ void CSPDirectiveList::reportViolation(const String& directiveText, const String |
{ |
String message = m_reportOnly ? "[Report Only] " + consoleMessage : consoleMessage; |
m_policy->logToConsole(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, message)); |
- m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportURIs, m_header); |
+ m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportEndpoints, m_header); |
} |
void CSPDirectiveList::reportViolationWithLocation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const KURL& blockedURL, const String& contextURL, const WTF::OrdinalNumber& contextLine) const |
{ |
String message = m_reportOnly ? "[Report Only] " + consoleMessage : consoleMessage; |
m_policy->logToConsole(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, message, contextURL, contextLine.oneBasedInt())); |
- m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportURIs, m_header); |
+ m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportEndpoints, m_header); |
} |
void CSPDirectiveList::reportViolationWithState(const String& directiveText, const String& effectiveDirective, const String& message, const KURL& blockedURL, ScriptState* scriptState) const |
@@ -63,7 +63,7 @@ void CSPDirectiveList::reportViolationWithState(const String& directiveText, con |
RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, reportMessage); |
consoleMessage->setScriptState(scriptState); |
m_policy->logToConsole(consoleMessage.release()); |
- m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportURIs, m_header); |
+ m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportEndpoints, m_header); |
} |
bool CSPDirectiveList::checkEval(SourceListDirective* directive) const |
@@ -476,7 +476,7 @@ bool CSPDirectiveList::parseDirective(const UChar* begin, const UChar* end, Stri |
void CSPDirectiveList::parseReportURI(const String& name, const String& value) |
{ |
- if (!m_reportURIs.isEmpty()) { |
+ if (!m_reportEndpoints.isEmpty()) { |
m_policy->reportDuplicateDirective(name); |
return; |
} |
@@ -495,7 +495,7 @@ void CSPDirectiveList::parseReportURI(const String& name, const String& value) |
if (urlBegin < position) { |
String url = String(urlBegin, position - urlBegin); |
- m_reportURIs.append(m_policy->completeURL(url)); |
+ m_reportEndpoints.append(url); |
} |
} |
} |