Index: third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
diff --git a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
index 5af409b81c582e13e57b728067dd582192cc63c2..ef1173ec484a40c2ddcbbae85883cd3c2fd0a46b 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
@@ -141,7 +141,8 @@ void SourceListDirective::parse(const UChar* begin, const UChar* end) { |
// list itself. |
if (scheme.isEmpty() && host.isEmpty()) |
continue; |
- if (m_policy->isDirectiveName(host)) |
+ if (ContentSecurityPolicy::getDirectiveType(host) != |
+ ContentSecurityPolicy::DirectiveType::Undefined) |
m_policy->reportDirectiveAsSourceExpression(m_directiveName, host); |
m_list.append(new CSPSource(m_policy, scheme, host, port, path, |
hostWildcard, portWildcard)); |