| Index: content/browser/frame_host/navigator_impl.cc
|
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
|
| index fc0bdebf30b5b0591c1a7a6ac8987bd9c94db95f..11b322e492b6d1874666c6ea93b13ac912cd268b 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -551,9 +551,10 @@ void NavigatorImpl::RequestOpenURL(
|
| SiteInstance* current_site_instance =
|
| GetRenderManager(render_frame_host)->current_frame_host()->
|
| GetSiteInstance();
|
| - // If this came from a swapped out RenderViewHost, we only allow the request
|
| + // If this came from a swapped out RenderFrameHost, we only allow the request
|
| // if we are still in the same BrowsingInstance.
|
| - if (render_frame_host->render_view_host()->IsSwappedOut() &&
|
| + // TODO(creis): Move this to RenderFrameProxyHost::OpenURL.
|
| + if (render_frame_host->is_swapped_out() &&
|
| !render_frame_host->GetSiteInstance()->IsRelatedSiteInstance(
|
| current_site_instance)) {
|
| return;
|
|
|