browserClient: dont restart render process for javascript: scheme
This commit is contained in:
parent
4a376694b4
commit
9b7ad675c6
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue