diff options
Diffstat (limited to 'Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp')
-rw-r--r-- | Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp b/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp index 89133d4eb..4c4f11c42 100644 --- a/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp +++ b/Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp @@ -47,4 +47,14 @@ bool ContentSecurityPolicySourceListDirective::allows(const URL& url) return m_sourceList.matches(url); } +bool ContentSecurityPolicySourceListDirective::allows(const String& nonce) const +{ + return m_sourceList.matches(nonce); +} + +bool ContentSecurityPolicySourceListDirective::allows(const ContentSecurityPolicyHash& hash) const +{ + return m_sourceList.matches(hash); +} + } // namespace WebCore |