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

Unified Diff: content/browser/site_instance_impl.cc

Issue 743773003: OOPIF: Data URLs are now rendered in the renderer that initiated the navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 f1555dc1af8f627c7eb50d811a3ae445adec9678..d1d15bdd05df4f36676dd584193fa6cabb563c13 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -273,6 +273,9 @@ bool SiteInstance::IsSameWebSite(BrowserContext* browser_context,
if (dest_url == blank_page)
return true;
+ if (dest_url.scheme() == url::kDataScheme)
Charlie Reis 2014/12/06 00:18:50 I'd like to avoid this if we can. Generally, typi
lfg 2014/12/08 20:45:33 Should we also remove about:blank urls from IsSame
+ return true;
+
// If the schemes differ, they aren't part of the same site.
if (src_url.scheme() != dest_url.scheme())
return false;

Powered by Google App Engine
This is Rietveld 408576698