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

Unified Diff: content/common/navigation_params.cc

Issue 2689653003: PlzNavigate: Enforce 'form-action' CSP on the browser-side. (Closed)
Patch Set: PlzNavigate: Enforce 'form-action' CSP on the browser-side. Created 3 years, 10 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/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 3d7d14c20f14575d6fc905af8aac69f016a5e1d4..eec2d7f6f86a8a8aea1e92c159fd795a0dca150b 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -86,8 +86,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,
@@ -96,6 +96,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),
@@ -103,6 +104,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(

Powered by Google App Engine
This is Rietveld 408576698