fix: window.open not overriding parent's webPreferences (#32057)
* fix: window.open not overriding parent's webPreferences * test: remove "nativeWindowOpen: false" from renderer tests
This commit is contained in:
parent
77287febf4
commit
35ac7fb8e6
12 changed files with 98 additions and 33 deletions
|
@ -154,16 +154,6 @@ describe('chromium feature', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('window.postMessage', () => {
|
||||
it('throws an exception when the targetOrigin cannot be converted to a string', () => {
|
||||
const b = window.open('');
|
||||
expect(() => {
|
||||
b.postMessage('test', { toString: null });
|
||||
}).to.throw('Cannot convert object to primitive value');
|
||||
b.close();
|
||||
});
|
||||
});
|
||||
|
||||
describe('window.opener.postMessage', () => {
|
||||
it('sets source and origin correctly', async () => {
|
||||
const message = waitForEvent(window, 'message');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue