fix: heap-use-after-free in tray.popUpContextMenu (#22842)
This commit is contained in:
parent
8ff7a1160a
commit
ac501e8194
2 changed files with 15 additions and 0 deletions
|
@ -73,6 +73,13 @@ describe('tray module', () => {
|
|||
});
|
||||
tray.popUpContextMenu();
|
||||
});
|
||||
|
||||
it('can be called with a menu', () => {
|
||||
const menu = Menu.buildFromTemplate([{ label: 'Test' }]);
|
||||
expect(() => {
|
||||
tray.popUpContextMenu(menu);
|
||||
}).to.not.throw();
|
||||
});
|
||||
});
|
||||
|
||||
describe('tray.closeContextMenu()', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue