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 a39bd01757bc290cadd2c2d97c2aab3bd65965d3..c53f5b901e4756ae556f01fd316ae05e9a26ea58 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp |
@@ -696,6 +696,18 @@ bool SourceListDirective::subsumes( |
return CSPSource::firstSubsumesSecond(normalizedA, normalizedB); |
} |
+WebContentSecurityPolicySourceList |
+SourceListDirective::exposeForNavigationalChecks() const { |
+ WebContentSecurityPolicySourceList sourceList; |
+ sourceList.allowSelf = m_allowSelf; |
+ sourceList.allowStar = m_allowStar; |
+ WebVector<WebContentSecurityPolicySourceExpression> list(m_list.size()); |
+ for (size_t i = 0; i < m_list.size(); ++i) |
+ list[i] = m_list[i]->exposeForNavigationalChecks(); |
+ sourceList.sources.swap(list); |
+ return sourceList; |
+} |
+ |
bool SourceListDirective::subsumesNoncesAndHashes( |
const HashSet<String>& nonces, |
const HashSet<CSPHashValue> hashes) const { |