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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.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/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index 480913c2331bd5a0d9c7d641c0c9287da7e567d6..fa6b787d412eae5f9ac9b696f0b2aa4c25e3ccc9 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1082,7 +1082,9 @@ class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>,
BeginNavigationParams begin_params(
std::string(), net::LOAD_NORMAL, false, false,
REQUEST_CONTEXT_TYPE_LOCATION,
- blink::WebMixedContentContextType::Blockable, url::Origin(url));
+ blink::WebMixedContentContextType::Blockable,
+ false, // is_form_submission
+ url::Origin(url));
CommonNavigationParams common_params;
common_params.url = url;
std::unique_ptr<NavigationRequestInfo> request_info(
@@ -2643,6 +2645,7 @@ TEST_P(ResourceDispatcherHostTest, CancelRequestsForContext) {
std::string(), net::LOAD_NORMAL, false, false,
REQUEST_CONTEXT_TYPE_LOCATION,
blink::WebMixedContentContextType::Blockable,
+ false, // is_form_submission
url::Origin(download_url));
CommonNavigationParams common_params;
common_params.url = download_url;

Powered by Google App Engine
This is Rietveld 408576698