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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2472253002: Fix navigation requests starting too early and not getting associated with the <webview>. (Closed)
Patch Set: keep only one pending navigation Created 4 years, 1 month 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index f16dbea41617ce9478f50f67ccc10c760307836c..00d38254bed2a3c7c254e676ecf9606aadc10df9 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1558,7 +1558,8 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
GetRenderManager()->Init(site_instance.get(), view_routing_id,
params.main_frame_routing_id,
- main_frame_widget_routing_id);
+ main_frame_widget_routing_id,
+ params.renderer_initiated_creation);
// blink::FrameTree::setName always keeps |unique_name| empty in case of a
// main frame - let's do the same thing here.
@@ -2061,8 +2062,10 @@ void WebContentsImpl::CreateNewWindow(
}
// It's safe to only target the frame because the render process will not
// have a chance to create more frames at this point.
- ResourceDispatcherHostImpl::ResumeBlockedRequestsForRouteFromUI(
- GlobalFrameRoutingId(render_process_id, main_frame_route_id));
+ RenderFrameHostImpl* rfh =
+ RenderFrameHostImpl::FromID(render_process_id, main_frame_route_id);
+ if (rfh)
+ rfh->Init();
return;
}

Powered by Google App Engine
This is Rietveld 408576698