mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
This reverts commit 90b5ba3bed.
This commit is contained in:
@@ -951,9 +951,9 @@ void ElectronBrowserClient::RenderProcessReady(
|
||||
void ElectronBrowserClient::RenderProcessExited(
|
||||
content::RenderProcessHost* host,
|
||||
const content::ChildProcessTerminationInfo& info) {
|
||||
if (delegate_)
|
||||
if (delegate_) {
|
||||
static_cast<api::App*>(delegate_)->RenderProcessExited(host);
|
||||
host->RemoveObserver(this);
|
||||
}
|
||||
}
|
||||
|
||||
void OnOpenExternal(const GURL& escaped_url, bool allowed) {
|
||||
|
||||
@@ -1330,13 +1330,6 @@ describe('webContents module', () => {
|
||||
w.webContents.reload();
|
||||
expect(w.webContents.isCrashed()).to.equal(false);
|
||||
});
|
||||
|
||||
it('does not crash when a new page is loaded after forcefullyCrashRenderer()', async () => {
|
||||
expect(w.webContents.isCrashed()).to.equal(false);
|
||||
w.webContents.forcefullyCrashRenderer();
|
||||
await w.loadFile(path.join(fixturesPath, 'pages', 'base-page.html'));
|
||||
expect(w.webContents.isCrashed()).to.equal(false);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user