Index: content/browser/frame_host/ancestor_throttle.cc |
diff --git a/content/browser/frame_host/ancestor_throttle.cc b/content/browser/frame_host/ancestor_throttle.cc |
index cba286784a2e914a9f35e79578900da220198d10..10fb732930652a0c59bcbfeb5e860a5d557b1d77 100644 |
--- a/content/browser/frame_host/ancestor_throttle.cc |
+++ b/content/browser/frame_host/ancestor_throttle.cc |
@@ -189,10 +189,12 @@ AncestorThrottle::CheckContentSecurityPolicyFrameSrc(bool is_redirect) { |
RenderFrameHostImpl* parent = parent_ftn->current_frame_host(); |
DCHECK(parent); |
- if (!parent->IsAllowedByCsp(CSPDirective::FrameSrc, url, is_redirect)) |
- return NavigationThrottle::BLOCK_REQUEST; |
+ if (parent->IsAllowedByCsp(CSPDirective::FrameSrc, url, is_redirect, |
+ handle->source_location())) { |
+ return NavigationThrottle::PROCEED; |
+ } |
- return NavigationThrottle::PROCEED; |
+ return NavigationThrottle::BLOCK_REQUEST; |
} |
NavigationThrottle::ThrottleCheckResult AncestorThrottle::WillStartRequest() { |