diff --git a/app/main.ts b/app/main.ts index bfdd37e094..55a395dbb5 100644 --- a/app/main.ts +++ b/app/main.ts @@ -675,7 +675,7 @@ async function createWindow() { nodeIntegration: false, nodeIntegrationInWorker: false, sandbox: false, - contextIsolation: false, + contextIsolation: !isTestEnvironment(getEnvironment()), preload: join( __dirname, usePreloadBundle @@ -1138,7 +1138,7 @@ async function showScreenShareWindow(sourceName: string) { ...defaultWebPrefs, nodeIntegration: false, nodeIntegrationInWorker: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/screenShare/preload.js'), }, @@ -1192,7 +1192,7 @@ async function showAbout() { ...defaultWebPrefs, nodeIntegration: false, nodeIntegrationInWorker: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/about/preload.js'), nativeWindowOpen: true, @@ -1240,7 +1240,7 @@ async function showSettingsWindow() { ...defaultWebPrefs, nodeIntegration: false, nodeIntegrationInWorker: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/settings/preload.js'), nativeWindowOpen: true, @@ -1379,7 +1379,7 @@ async function showDebugLogWindow() { ...defaultWebPrefs, nodeIntegration: false, nodeIntegrationInWorker: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/debuglog/preload.js'), nativeWindowOpen: true, @@ -1443,7 +1443,7 @@ function showPermissionsPopupWindow(forCalling: boolean, forCamera: boolean) { ...defaultWebPrefs, nodeIntegration: false, nodeIntegrationInWorker: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/permissions/preload.js'), nativeWindowOpen: true, @@ -1784,7 +1784,7 @@ app.on('ready', async () => { webPreferences: { ...defaultWebPrefs, nodeIntegration: false, - sandbox: false, + sandbox: true, contextIsolation: true, preload: join(__dirname, '../ts/windows/loading/preload.js'), }, diff --git a/background.html b/background.html index 0e22129179..9980afcfd3 100644 --- a/background.html +++ b/background.html @@ -118,22 +118,6 @@ .addEventListener('dblclick', () => window.showDebugLog()); - - - - - - -