ELECTRON-1066, 1067: upgrade electron version (#567)

- upgrade electron framework version to address security vulnerability with native window open and node integration
- disable background throttling on requests when creating a new window
This commit is contained in:
Vishwas Shashidhar
2019-02-12 09:57:03 +05:30
committed by GitHub
parent 2d400b2775
commit dd0e7af850
2 changed files with 4 additions and 2 deletions

View File

@@ -204,6 +204,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
sandbox: true,
nodeIntegration: false,
preload: preloadMainScript,
backgroundThrottling: false
}
};
@@ -505,6 +506,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
newWinOptions.alwaysOnTop = alwaysOnTop;
newWinOptions.frame = true;
newWinOptions.parent = null;
newWinOptions.webPreferences.backgroundThrottling = false;
let newWinKey = getGuid();