Don't force restart renderer process for in-page navigation

This commit is contained in:
Cheng Zhao 2015-05-11 14:40:40 +08:00
parent 40631edb70
commit d1545a64ae
3 changed files with 19 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include <set>
#include "atom/browser/atom_browser_client.h"
#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_javascript_dialog_manager.h"
#include "atom/browser/native_window.h"
@ -444,10 +445,12 @@ void WebContents::ReloadIgnoringCache() {
}
void WebContents::GoBack() {
atom::AtomBrowserClient::SuppressRendererProcessRestartForOnce();
web_contents()->GetController().GoBack();
}
void WebContents::GoForward() {
atom::AtomBrowserClient::SuppressRendererProcessRestartForOnce();
web_contents()->GetController().GoForward();
}