Index: Source/core/frame/csp/ContentSecurityPolicy.cpp |
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
index 7533db5ee3cc34b2a34e511ebb043f580591ec65..8796316d1585c9462734c195400f19a6aa8b7a2b 100644 |
--- a/Source/core/frame/csp/ContentSecurityPolicy.cpp |
+++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
@@ -900,6 +900,15 @@ bool ContentSecurityPolicy::experimentalFeaturesEnabled() const |
return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnabled(); |
} |
+bool ContentSecurityPolicy::shouldSendCSPHeader(Resource::Type type) const |
+{ |
+ for (const auto& policy : m_policies) { |
+ if (policy->shouldSendCSPHeader(type)) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
bool ContentSecurityPolicy::urlMatchesSelf(const KURL& url) const |
{ |
return m_selfSource->matches(url, DidNotRedirect); |