fix: segfault on webContents.fromId(xxx) (#26609)
This commit is contained in:
parent
abb1504ecc
commit
329494cfeb
3 changed files with 15 additions and 2 deletions
|
@ -42,6 +42,12 @@ describe('webContents module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('fromId()', () => {
|
||||
it('returns undefined for an unknown id', () => {
|
||||
expect(webContents.fromId(12345)).to.be.undefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('will-prevent-unload event', function () {
|
||||
afterEach(closeAllWindows);
|
||||
it('does not emit if beforeunload returns undefined', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue