sec: deprecate some webPreference defaults to be secure-by-default (#14284)
* feat: deprecate default value of nodeIntegration * Use DeprecationStatus::Stable as the default instead of shadowing * change wording of deprecations * chore: also deprecate kWebviewTag and kContextIsolation * chore: do as we preach, lets be secure-by-default in the default app
This commit is contained in:
parent
9b2c14a745
commit
66d6ba8689
9 changed files with 100 additions and 43 deletions
|
@ -16,7 +16,10 @@ exports.load = (appUrl) => {
|
|||
autoHideMenuBar: true,
|
||||
backgroundColor: '#FFFFFF',
|
||||
webPreferences: {
|
||||
nodeIntegrationInWorker: true
|
||||
nodeIntegration: false,
|
||||
webviewTag: false,
|
||||
contextIsolation: true,
|
||||
preload: path.resolve(__dirname, 'renderer.js')
|
||||
},
|
||||
useContentSize: true,
|
||||
show: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue