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

Unified Diff: content/test/test_render_frame_host.cc

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issue in SW preload Created 4 years 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 1a11e5a7071f3cf2ffbb9fa7b2c9395ff69a75dd..96087e33ee6553816bdfc3373cecf50aec959e1f 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -398,8 +398,10 @@ void TestRenderFrameHost::SendRendererInitiatedNavigationRequest(
InitializeRenderFrameIfNeeded();
if (IsBrowserSideNavigationEnabled()) {
+ // TODO(mkwst): The initiator origin here is incorrect.
BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL, false,
- REQUEST_CONTEXT_TYPE_HYPERLINK);
+ REQUEST_CONTEXT_TYPE_HYPERLINK,
+ 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