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

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

Issue 2689653003: PlzNavigate: Enforce 'form-action' CSP on the browser-side. (Closed)
Patch Set: Rebase. 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 872baffcc9659a67ae620d1f3f99faaa80fbd4d2..d3c54a37192e6d3f65b240502ac5f1a9f8da93a1 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -3467,8 +3467,9 @@ RenderFrameHostImpl::TakeNavigationHandleForCommit(
params.url, params.redirects, frame_tree_node_, is_renderer_initiated,
params.was_within_same_document, base::TimeTicks::Now(),
pending_nav_entry_id,
- false, // started_from_context_menu
- CSPDisposition::CHECK); // should_check_main_world_csp
+ false, // started_from_context_menu
+ CSPDisposition::CHECK, // should_check_main_world_csp
+ false); // is_form_submission
}
// Determine if the current NavigationHandle can be used.
@@ -3521,8 +3522,9 @@ RenderFrameHostImpl::TakeNavigationHandleForCommit(
params.url, params.redirects, frame_tree_node_, is_renderer_initiated,
params.was_within_same_document, base::TimeTicks::Now(),
entry_id_for_data_nav,
- false, // started_from_context_menu
- CSPDisposition::CHECK); // should_check_main_world_csp
+ false, // started_from_context_menu
+ CSPDisposition::CHECK, // should_check_main_world_csp
+ false); // is_form_submission
}
void RenderFrameHostImpl::BeforeUnloadTimeout() {
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/loader/navigation_url_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698