| Index: content/browser/loader/cross_site_resource_handler.cc
|
| diff --git a/content/browser/loader/cross_site_resource_handler.cc b/content/browser/loader/cross_site_resource_handler.cc
|
| index 4f7ae48763e1490b40764ee830e70fc780ec0a40..aa4e88d6afbd579d0911093a79f0cfbc1be6bf4d 100644
|
| --- a/content/browser/loader/cross_site_resource_handler.cc
|
| +++ b/content/browser/loader/cross_site_resource_handler.cc
|
| @@ -97,6 +97,11 @@ bool CheckNavigationPolicyOnUI(GURL url, int process_id, int render_frame_id) {
|
| if (!rfh)
|
| return false;
|
|
|
| + // A transfer is not needed if the current SiteInstance doesn't yet have a
|
| + // site. This is the case for tests that use NavigateToURL.
|
| + if (!rfh->GetSiteInstance()->HasSite())
|
| + return false;
|
| +
|
| // TODO(nasko): This check is very simplistic and is used temporarily only
|
| // for --site-per-process. It should be updated to match the check performed
|
| // by RenderFrameHostManager::UpdateStateForNavigate.
|
|
|