|
@@ -228,7 +228,7 @@ describe('security warnings', () => {
|
|
|
it('should warn about enabled remote module with remote content', async () => {
|
|
|
w = new BrowserWindow({
|
|
|
show: false,
|
|
|
- webPreferences
|
|
|
+ webPreferences: { ...webPreferences, enableRemoteModule: true }
|
|
|
});
|
|
|
|
|
|
w.loadURL(`${serverUrl}/base-page-security.html`);
|
|
@@ -239,7 +239,7 @@ describe('security warnings', () => {
|
|
|
it('should not warn about enabled remote module with remote content from localhost', async () => {
|
|
|
w = new BrowserWindow({
|
|
|
show: false,
|
|
|
- webPreferences
|
|
|
+ webPreferences: { ...webPreferences, enableRemoteModule: true }
|
|
|
});
|
|
|
w.loadURL(`${serverUrl}/base-page-security-onload-message.html`);
|
|
|
const [,, message] = await emittedUntil(w.webContents, 'console-message', isLoaded);
|