fix: DCHECK on reload when forcefullyCrashRenderer() is called (#30544)
This commit is contained in:
parent
29749f3dc6
commit
90b5ba3bed
2 changed files with 9 additions and 2 deletions
|
@ -1330,6 +1330,13 @@ 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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue