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

Unified Diff: content/common/navigation_params.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
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 394e8f364286bf955accf45f8275781deba78d53..b36b744ba17e28b3a3df92784dfe666e5a69f82d 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -97,8 +97,8 @@ BeginNavigationParams::BeginNavigationParams()
has_user_gesture(false),
skip_service_worker(false),
request_context_type(REQUEST_CONTEXT_TYPE_LOCATION),
- mixed_content_context_type(blink::WebMixedContentContextType::Blockable) {
-}
+ mixed_content_context_type(blink::WebMixedContentContextType::Blockable),
+ is_form_submission(false) {}
BeginNavigationParams::BeginNavigationParams(
std::string headers,
@@ -107,6 +107,7 @@ BeginNavigationParams::BeginNavigationParams(
bool skip_service_worker,
RequestContextType request_context_type,
blink::WebMixedContentContextType mixed_content_context_type,
+ bool is_form_submission,
const base::Optional<url::Origin>& initiator_origin)
: headers(headers),
load_flags(load_flags),
@@ -114,6 +115,7 @@ BeginNavigationParams::BeginNavigationParams(
skip_service_worker(skip_service_worker),
request_context_type(request_context_type),
mixed_content_context_type(mixed_content_context_type),
+ is_form_submission(is_form_submission),
initiator_origin(initiator_origin) {}
BeginNavigationParams::BeginNavigationParams(
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698