Skip to content

Commit

Permalink
chore: bump electron@7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed May 27, 2020
1 parent 61b03f3 commit 113fd1b
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .yarnrc
@@ -1,3 +1,3 @@
disturl "https://atom.io/download/electron"
target "7.2.4"
target "7.3.0"
runtime "electron"
4 changes: 2 additions & 2 deletions build/builtin/main.js
Expand Up @@ -10,11 +10,11 @@ const path = require('path');
let window = null;

app.once('ready', () => {
window = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true, webviewTag: true } });
window = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true, webviewTag: true, enableWebSQL: false } });
window.setMenuBarVisibility(false);
window.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true }));
// window.webContents.openDevTools();
window.once('closed', () => window = null);
});

app.on('window-all-closed', () => app.quit());
app.on('window-all-closed', () => app.quit());
4 changes: 2 additions & 2 deletions cgmanifest.json
Expand Up @@ -60,12 +60,12 @@
"git": {
"name": "electron",
"repositoryUrl": "https://github.com/electron/electron",
"commitHash": "0552e0d5de46ffa3b481d741f1db5c779e201565"
"commitHash": "8f502de1dc5b6df4218a900d0857de7a40301d98"
}
},
"isOnlyProductionDependency": true,
"license": "MIT",
"version": "7.2.4"
"version": "7.3.0"
},
{
"component": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -99,7 +99,7 @@
"css-loader": "^3.2.0",
"debounce": "^1.0.0",
"deemon": "^1.4.0",
"electron": "7.2.4",
"electron": "7.3.0",
"eslint": "6.8.0",
"eslint-plugin-jsdoc": "^19.1.0",
"event-stream": "3.3.4",
Expand Down Expand Up @@ -181,4 +181,4 @@
"windows-mutex": "0.3.0",
"windows-process-tree": "0.2.4"
}
}
}
3 changes: 2 additions & 1 deletion src/vs/code/electron-main/auth.ts
Expand Up @@ -59,7 +59,8 @@ export class ProxyAuthHandler extends Disposable {
title: 'VS Code',
webPreferences: {
nodeIntegration: true,
webviewTag: true
webviewTag: true,
enableWebSQL: false
}
};

Expand Down
1 change: 1 addition & 0 deletions src/vs/code/electron-main/sharedProcess.ts
Expand Up @@ -46,6 +46,7 @@ export class SharedProcess implements ISharedProcess {
images: false,
nodeIntegration: true,
webgl: false,
enableWebSQL: false,
disableBlinkFeatures: 'Auxclick' // do NOT change, allows us to identify this window as shared-process in the process explorer
}
});
Expand Down
3 changes: 2 additions & 1 deletion src/vs/code/electron-main/window.ts
Expand Up @@ -166,7 +166,8 @@ export class CodeWindow extends Disposable implements ICodeWindow {
preload: URI.parse(this.doGetPreloadUrl()).fsPath,
nodeIntegration: true,
nodeIntegrationInWorker: RUN_TEXTMATE_IN_WORKER,
webviewTag: true
webviewTag: true,
enableWebSQL: false
}
};

Expand Down
6 changes: 4 additions & 2 deletions src/vs/platform/issue/electron-main/issueMainService.ts
Expand Up @@ -195,7 +195,8 @@ export class IssueMainService implements ICommonIssueService {
backgroundColor: data.styles.backgroundColor || DEFAULT_BACKGROUND_COLOR,
webPreferences: {
preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath,
nodeIntegration: true
nodeIntegration: true,
enableWebSQL: false
}
});

Expand Down Expand Up @@ -245,7 +246,8 @@ export class IssueMainService implements ICommonIssueService {
title: localize('processExplorer', "Process Explorer"),
webPreferences: {
preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath,
nodeIntegration: true
nodeIntegration: true,
enableWebSQL: false
}
});

Expand Down
3 changes: 2 additions & 1 deletion test/unit/electron/index.js
Expand Up @@ -116,7 +116,8 @@ app.on('ready', () => {
nodeIntegration: true,
webSecurity: false,
webviewTag: true,
preload: path.join(__dirname, '..', '..', '..', 'src', 'vs', 'base', 'parts', 'sandbox', 'electron-browser', 'preload.js') // ensure similar environment as VSCode as tests may depend on this
preload: path.join(__dirname, '..', '..', '..', 'src', 'vs', 'base', 'parts', 'sandbox', 'electron-browser', 'preload.js'), // ensure similar environment as VSCode as tests may depend on this
enableWebSQL: false
}
});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2715,10 +2715,10 @@ electron-to-chromium@^1.2.7:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.27.tgz#78ecb8a399066187bb374eede35d9c70565a803d"
integrity sha1-eOy4o5kGYYe7N07t412ccFZagD0=

electron@7.2.4:
version "7.2.4"
resolved "https://registry.yarnpkg.com/electron/-/electron-7.2.4.tgz#9fc0446dae23ead897af8742470cb18da55c6ce9"
integrity sha512-Z+R692uTzXgP8AHrabE+kkrMlQJ6pnAYoINenwj9QSqaD2YbO8IuXU9DMCcUY0+VpA91ee09wFZJNUKYPMnCKg==
electron@7.3.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-7.3.0.tgz#b4e1bd1efe32314534dba9b60ea5cc688216f3b3"
integrity sha512-uG3WVhyawWXBUJN+f5GkdCq8z5r+XsvpLLAyUuPo+DL2PXt57YI1wEXc5qTJq9hzlLAcGOlU/4+8pSkYBWOn1A==
dependencies:
"@electron/get" "^1.0.1"
"@types/node" "^12.0.12"
Expand Down

0 comments on commit 113fd1b

Please sign in to comment.