feat: remove BrowserWindow option inheritance (#28550)
This commit is contained in:
parent
c4931ff70e
commit
4ca518468d
13 changed files with 128 additions and 118 deletions
|
@ -91,7 +91,7 @@ describe('chromium feature', () => {
|
|||
slashes: true
|
||||
});
|
||||
const message = waitForEvent(window, 'message');
|
||||
const b = window.open(windowUrl, '', 'nodeIntegration=no,show=no');
|
||||
const b = window.open(windowUrl, '', 'nodeIntegration=no,contextIsolation=no,show=no');
|
||||
const event = await message;
|
||||
b.close();
|
||||
expect(event.data.isProcessGlobalUndefined).to.be.true();
|
||||
|
@ -107,7 +107,7 @@ describe('chromium feature', () => {
|
|||
slashes: true
|
||||
});
|
||||
const message = waitForEvent(window, 'message');
|
||||
const b = window.open(windowUrl, '', 'webviewTag=no,nodeIntegration=yes,show=no');
|
||||
const b = window.open(windowUrl, '', 'webviewTag=no,contextIsolation=no,nodeIntegration=yes,show=no');
|
||||
const event = await message;
|
||||
b.close();
|
||||
expect(event.data.isWebViewGlobalUndefined).to.be.true();
|
||||
|
@ -218,7 +218,7 @@ describe('chromium feature', () => {
|
|||
|
||||
it('delivers messages that match the origin', async () => {
|
||||
const message = waitForEvent(window, 'message');
|
||||
const b = window.open(serverURL, '', 'show=no');
|
||||
const b = window.open(serverURL, '', 'show=no,contextIsolation=no,nodeIntegration=yes');
|
||||
const event = await message;
|
||||
b.close();
|
||||
expect(event.data).to.equal('deliver');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue