Index: content/browser/frame_host/form_submission_throttle.cc |
diff --git a/content/browser/frame_host/form_submission_throttle.cc b/content/browser/frame_host/form_submission_throttle.cc |
index 8e3958f5c5e67aa4bdf14bf5bb791aa7468c6963..2b9c571ffef2135c4873da552c15be3bd95bab06 100644 |
--- a/content/browser/frame_host/form_submission_throttle.cc |
+++ b/content/browser/frame_host/form_submission_throttle.cc |
@@ -56,8 +56,10 @@ FormSubmissionThrottle::CheckContentSecurityPolicyFormAction(bool is_redirect) { |
RenderFrameHostImpl* render_frame = |
handle->frame_tree_node()->current_frame_host(); |
- if (render_frame->IsAllowedByCsp(CSPDirective::FormAction, url, is_redirect)) |
+ if (render_frame->EnforceCsp(CSPDirective::FormAction, url, is_redirect, |
+ handle->source_location())) { |
return NavigationThrottle::PROCEED; |
+ } |
return NavigationThrottle::CANCEL; |
} |