diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 9c391ebb..623e1680 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -108,7 +108,7 @@ export const DEFAULT_WELCOME_SCREEN_HEIGHT: number = 333; export const TITLE_BAR_HEIGHT: number = 32; export const IS_SAND_BOXED: boolean = true; export const IS_NODE_INTEGRATION_ENABLED: boolean = false; - +export const AUX_CLICK = 'Auxclick'; // Timeout on restarting SDA in case it's stuck const LISTEN_TIMEOUT: number = 25 * 1000; @@ -741,6 +741,7 @@ export class WindowHandler { nodeIntegration: IS_NODE_INTEGRATION_ENABLED, preload: path.join(__dirname, '../renderer/_preload-component.js'), devTools: isDevEnv, + disableBlinkFeatures: AUX_CLICK, }, }) as ICustomBrowserView; const titleBarWindowUrl = format({ @@ -2195,6 +2196,7 @@ export class WindowHandler { contextIsolation: this.contextIsolation, backgroundThrottling: this.backgroundThrottling, enableRemoteModule: true, + disableBlinkFeatures: AUX_CLICK, }, ...webPreferences, }; diff --git a/src/app/window-utils.ts b/src/app/window-utils.ts index f839fe8b..93bf40e9 100644 --- a/src/app/window-utils.ts +++ b/src/app/window-utils.ts @@ -35,6 +35,7 @@ import { memoryMonitor } from './memory-monitor'; import { screenSnippet } from './screen-snippet-handler'; import { updateAlwaysOnTop } from './window-actions'; import { + AUX_CLICK, DEFAULT_HEIGHT, DEFAULT_WIDTH, ICustomBrowserView, @@ -189,6 +190,7 @@ export const createComponentWindow = ( nodeIntegration: IS_NODE_INTEGRATION_ENABLED, preload: path.join(__dirname, '../renderer/_preload-component.js'), devTools: isDevEnv, + disableBlinkFeatures: AUX_CLICK, }, }; @@ -1127,6 +1129,7 @@ export const loadBrowserViews = async ( nodeIntegration: IS_NODE_INTEGRATION_ENABLED, preload: path.join(__dirname, '../renderer/_preload-component.js'), devTools: isDevEnv, + disableBlinkFeatures: AUX_CLICK, }, }) as ICustomBrowserView; const mainWindowBounds = windowHandler.getMainWindow()?.getBounds(); diff --git a/src/renderer/notification.ts b/src/renderer/notification.ts index 55e871ac..37a28248 100644 --- a/src/renderer/notification.ts +++ b/src/renderer/notification.ts @@ -7,6 +7,7 @@ import { } from '../app/analytics-handler'; import { config } from '../app/config-handler'; import { + AUX_CLICK, IS_NODE_INTEGRATION_ENABLED, IS_SAND_BOXED, } from '../app/window-handler'; @@ -624,6 +625,7 @@ class Notification extends NotificationHandler { sandbox: IS_SAND_BOXED, nodeIntegration: IS_NODE_INTEGRATION_ENABLED, devTools: true, + disableBlinkFeatures: AUX_CLICK, }, }; }