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

Unified Diff: content/test/test_render_frame_host.cc

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 years, 11 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/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 02b50aed4633e8dc90409717703545e2be345a84..c50f745c4b3516c3c49511ec649049180f65c49f 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -24,6 +24,7 @@
#include "content/test/test_render_view_host.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "net/base/load_flags.h"
+#include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom.h"
#include "third_party/WebKit/public/web/WebSandboxFlags.h"
@@ -412,7 +413,8 @@ void TestRenderFrameHost::SendRendererInitiatedNavigationRequest(
// TODO(mkwst): The initiator origin here is incorrect.
BeginNavigationParams begin_params(
std::string(), net::LOAD_NORMAL, has_user_gesture, false,
- REQUEST_CONTEXT_TYPE_HYPERLINK, url::Origin());
+ REQUEST_CONTEXT_TYPE_HYPERLINK,
+ blink::WebMixedContentContextType::Blockable, url::Origin());
CommonNavigationParams common_params;
common_params.url = url;
common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault);

Powered by Google App Engine
This is Rietveld 408576698