Merge pull request #1785 from deepak1556/browser_client_patch

browserClient: dont restart render process for javascript scheme
This commit is contained in:
Cheng Zhao 2015-05-28 16:22:45 +08:00
commit ad89a923e9

View file

@ -147,8 +147,11 @@ void AtomBrowserClient::OverrideSiteInstanceForNavigation(
if (current_instance->HasProcess())
dying_render_process_ = current_instance->GetProcess();
// Restart renderer process for all navigations.
*new_instance = content::SiteInstance::CreateForURL(browser_context, url);
if (!url.SchemeIs(url::kJavaScriptScheme)) {
// Restart renderer process for all navigations except javacript: scheme.
*new_instance = content::SiteInstance::CreateForURL(browser_context, url);
}
}
void AtomBrowserClient::AppendExtraCommandLineSwitches(