chore: tsify web-contents (#24325)
This commit is contained in:
parent
82af855579
commit
1f23807271
7 changed files with 168 additions and 140 deletions
|
@ -84,7 +84,7 @@ describe('renderer nodeIntegrationInSubFrames', () => {
|
|||
w.loadFile(path.resolve(__dirname, `fixtures/sub-frames/frame-container${fixtureSuffix}.html`));
|
||||
const details = await detailsPromise;
|
||||
const senders = details.map(event => event[0].sender);
|
||||
const isolatedGlobals = await Promise.all(senders.map(sender => sender.webContents.executeJavaScript('window.isolatedGlobal')));
|
||||
const isolatedGlobals = await Promise.all(senders.map(sender => sender.executeJavaScript('window.isolatedGlobal')));
|
||||
for (const result of isolatedGlobals) {
|
||||
if (webPreferences.contextIsolation) {
|
||||
expect(result).to.be.undefined();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue