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 2bbc8850482a3fe6af4668b5e8e48dbfd4bbda2d..888a95f4d9d551d1ff86ab3386917b2d380d48a0 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
@@ -141,8 +141,7 @@ |
// list itself. |
if (scheme.isEmpty() && host.isEmpty()) |
continue; |
- if (ContentSecurityPolicy::getDirectiveType(host) != |
- ContentSecurityPolicy::DirectiveType::Undefined) |
+ if (m_policy->isDirectiveName(host)) |
m_policy->reportDirectiveAsSourceExpression(m_directiveName, host); |
m_list.append(new CSPSource(m_policy, scheme, host, port, path, |
hostWildcard, portWildcard)); |