Merge pull request #1785 from deepak1556/browser_client_patch
browserClient: dont restart render process for javascript scheme
This commit is contained in:
commit
ad89a923e9
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…
Reference in a new issue