Index: Source/core/frame/csp/ContentSecurityPolicy.cpp |
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
index 1733fd160fb48c1f340a4a8f8e08be743b793b49..90896499df5e3743190cd9b0a8ec5349220cb945 100644 |
--- a/Source/core/frame/csp/ContentSecurityPolicy.cpp |
+++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
@@ -546,11 +546,6 @@ bool ContentSecurityPolicy::allowAncestors(LocalFrame* frame, const KURL& url, C |
return isAllowedByAllWithFrame<&CSPDirectiveList::allowAncestors>(m_policies, frame, url, reportingStatus); |
} |
-bool ContentSecurityPolicy::allowChildContextFromSource(const KURL& url, ContentSecurityPolicy::ReportingStatus reportingStatus) const |
-{ |
- return isAllowedByAllWithURL<&CSPDirectiveList::allowChildContextFromSource>(m_policies, url, reportingStatus); |
-} |
- |
bool ContentSecurityPolicy::allowWorkerContextFromSource(const KURL& url, ContentSecurityPolicy::ReportingStatus reportingStatus) const |
{ |
// CSP 1.1 moves workers from 'script-src' to the new 'child-src'. Measure the impact of this backwards-incompatible change. |
@@ -583,22 +578,6 @@ ReflectedXSSDisposition ContentSecurityPolicy::reflectedXSSDisposition() const |
return disposition; |
} |
-ReferrerPolicy ContentSecurityPolicy::referrerPolicy() const |
-{ |
- ReferrerPolicy referrerPolicy = ReferrerPolicyDefault; |
- bool first = true; |
- for (const auto& policy : m_policies) { |
- if (policy->didSetReferrerPolicy()) { |
- if (first) |
- referrerPolicy = policy->referrerPolicy(); |
- else |
- referrerPolicy = mergeReferrerPolicies(referrerPolicy, policy->referrerPolicy()); |
- first = false; |
- } |
- } |
- return referrerPolicy; |
-} |
- |
bool ContentSecurityPolicy::didSetReferrerPolicy() const |
{ |
for (const auto& policy : m_policies) { |