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

Unified Diff: content/common/navigation_params.h

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.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 30fd9e7b47b69b67de600951da199cd1305285d7..b0ae9c94d4055da0a499cdb6aee814a9c9ab84a5 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -149,6 +149,7 @@ struct CONTENT_EXPORT 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);
BeginNavigationParams(const BeginNavigationParams& other);
~BeginNavigationParams();
@@ -171,6 +172,9 @@ struct CONTENT_EXPORT BeginNavigationParams {
// The mixed content context type for potential mixed content checks.
blink::WebMixedContentContextType mixed_content_context_type;
+ // Whether or not the navigation has been initiated by a form submission.
+ bool is_form_submission;
+
// See WebSearchableFormData for a description of these.
GURL searchable_form_url;
std::string searchable_form_encoding;

Powered by Google App Engine
This is Rietveld 408576698