| Index: content/browser/web_contents/web_contents_impl.cc
|
| ===================================================================
|
| --- content/browser/web_contents/web_contents_impl.cc (revision 184720)
|
| +++ content/browser/web_contents/web_contents_impl.cc (working copy)
|
| @@ -3280,11 +3280,15 @@
|
| if (opener_)
|
| opener_route_id = opener_->CreateOpenerRenderViews(instance);
|
|
|
| - // If any of the renderers for this WebContents has the same SiteInstance,
|
| - // use it.
|
| + // If any of the renderers (current, pending, or swapped out) for this
|
| + // WebContents has the same SiteInstance, use it.
|
| if (render_manager_.current_host()->GetSiteInstance() == instance)
|
| return render_manager_.current_host()->GetRoutingID();
|
|
|
| + if (render_manager_.pending_render_view_host() &&
|
| + render_manager_.pending_render_view_host()->GetSiteInstance() == instance)
|
| + return render_manager_.pending_render_view_host()->GetRoutingID();
|
| +
|
| RenderViewHostImpl* rvh = render_manager_.GetSwappedOutRenderViewHost(
|
| instance);
|
| if (rvh)
|
|
|