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

Unified Diff: content/browser/site_instance.cc

Issue 7068007: Revise about: and chrome: url handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update special_tabs.py from Nirnimesh's codereview.chromium.org/6995057/. Created 9 years, 6 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.cc
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index 610de02d61a1ff66125775e267477ac9dc0dc67b..53caf57110363ca7768f58eb544d84a97cb9e71c 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -17,12 +17,10 @@ static bool IsURLSameAsAnySiteInstance(const GURL& url) {
if (!url.is_valid())
return false;
- // We treat javascript: and about:crash as the same site as any URL since they
- // are actually modifiers on existing pages.
- if (url.SchemeIs(chrome::kJavaScriptScheme) ||
- url.spec() == chrome::kAboutCrashURL) {
+ // We treat javascript: as the same site as any URL since it is actually
+ // a modifier on existing pages.
+ if (url.SchemeIs(chrome::kJavaScriptScheme))
return true;
- }
return
content::GetContentClient()->browser()->IsURLSameAsAnySiteInstance(url);
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/browser/site_instance_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698