chore: remove app.allowRendererProcessReuse (#26874)
This commit is contained in:
parent
4ca518468d
commit
79077f6df9
16 changed files with 43 additions and 392 deletions
|
@ -2008,23 +2008,14 @@ void WebContents::Stop() {
|
|||
}
|
||||
|
||||
void WebContents::GoBack() {
|
||||
if (!ElectronBrowserClient::Get()->CanUseCustomSiteInstance()) {
|
||||
electron::ElectronBrowserClient::SuppressRendererProcessRestartForOnce();
|
||||
}
|
||||
web_contents()->GetController().GoBack();
|
||||
}
|
||||
|
||||
void WebContents::GoForward() {
|
||||
if (!ElectronBrowserClient::Get()->CanUseCustomSiteInstance()) {
|
||||
electron::ElectronBrowserClient::SuppressRendererProcessRestartForOnce();
|
||||
}
|
||||
web_contents()->GetController().GoForward();
|
||||
}
|
||||
|
||||
void WebContents::GoToOffset(int offset) {
|
||||
if (!ElectronBrowserClient::Get()->CanUseCustomSiteInstance()) {
|
||||
electron::ElectronBrowserClient::SuppressRendererProcessRestartForOnce();
|
||||
}
|
||||
web_contents()->GetController().GoToOffset(offset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue