Reuse site instance only on window.open

This commit is contained in:
Ryohei Ikegami 2017-03-21 10:41:49 +09:00
parent c3c67f78c1
commit 4d61d071b2
3 changed files with 26 additions and 10 deletions

View file

@ -468,6 +468,7 @@ void WebContents::AddNewContents(content::WebContents* source,
if (Emit("-add-new-contents", api_web_contents, disposition, user_gesture,
initial_rect.x(), initial_rect.y(), initial_rect.width(),
initial_rect.height())) {
AtomBrowserClient::CancelReuseRendererProcessForNewWindow();
api_web_contents->DestroyWebContents();
}
}