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

Unified Diff: content/browser/site_instance_impl.cc

Issue 378743002: Navigation transitions: Place transition page in same process as destination page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests + refactor. Created 6 years, 5 months 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/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index b6e6918c0a48d755b0ae631270858c440afd3cb0..2af044400a04846c896cb01e8a5909f6c7c73e89 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -261,6 +261,11 @@ bool SiteInstance::IsSameWebSite(BrowserContext* browser_context,
if (!url1.is_valid() || !url2.is_valid())
return false;
+ // If either url is just a blank page, we treat them as part of the same site.
Charlie Reis 2014/07/25 17:31:22 Ah, we don't actually want this for navigating fro
shatch 2014/07/25 20:57:05 Done.
+ GURL blank_page = GURL(url::kAboutBlankURL);
+ if (url1 == blank_page || url2 == blank_page)
+ return true;
+
// If the schemes differ, they aren't part of the same site.
if (url1.scheme() != url2.scheme())
return false;

Powered by Google App Engine
This is Rietveld 408576698