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 95de1ccbbea9c12bd299148a1845846e7a4c4ce8..874668148a3fd0f258a52b7b29ff5501c169f1e5 100644 |
--- a/content/browser/frame_host/navigator_impl.cc |
+++ b/content/browser/frame_host/navigator_impl.cc |
@@ -619,12 +619,12 @@ void NavigatorImpl::DidNavigate( |
} |
// Update the site of the SiteInstance if it doesn't have one yet, unless |
- // assigning a site is not necessary for this URL. In that case, the |
- // SiteInstance can still be considered unused until a navigation to a real |
- // page. |
+ // assigning a site is not necessary for this URL or the commit was for an |
+ // error page. In that case, the SiteInstance can still be considered unused |
+ // until a navigation to a real page. |
SiteInstanceImpl* site_instance = render_frame_host->GetSiteInstance(); |
- if (!site_instance->HasSite() && |
- ShouldAssignSiteForURL(params.url)) { |
+ if (!site_instance->HasSite() && ShouldAssignSiteForURL(params.url) && |
+ !params.url_is_unreachable) { |
site_instance->SetSite(params.url); |
} |