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 888a95f4d9d551d1ff86ab3386917b2d380d48a0..2bbc8850482a3fe6af4668b5e8e48dbfd4bbda2d 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)); |