Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: content/browser/frame_host/form_submission_throttle.cc

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)
Patch Set: Addressed comment @alexmos Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f05e1485b2727d6645ca08bbb5c3b174b4498896 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->IsAllowedByCsp(CSPDirective::FormAction, url, is_redirect,
+ handle->source_location())) {
return NavigationThrottle::PROCEED;
+ }
return NavigationThrottle::CANCEL;
}
« no previous file with comments | « content/browser/frame_host/ancestor_throttle.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698