From 79143ccfc158ec4fffc49eee600d600edb342b16 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 11 Jan 2018 05:56:18 +0300 Subject: Import WebKit commit a8b574fb3cd509a2d3f2a1568ad0a66d1bf0f6e8 Change-Id: I66add69e6d08b74111ec8e7e4401e4d813501206 Reviewed-by: Konstantin Tokarev --- .../page/csp/ContentSecurityPolicySourceListDirective.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/WebCore/page/csp/ContentSecurityPolicySourceListDirective.cpp') 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 -- cgit v1.2.3