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
|
@ -34,6 +34,18 @@ app.releaseSingleInstance()
|
|||
app.releaseSingleInstanceLock()
|
||||
```
|
||||
|
||||
## `new BrowserWindow({ webPreferences: { ... }})`
|
||||
|
||||
```js
|
||||
// Deprecated defaults
|
||||
const webPreferences = {}
|
||||
new BrowserWindow({ webPreferences })
|
||||
|
||||
// webPreferences.contextIsolation - Default was false, will be true
|
||||
// webPreferences.nodeIntegration - Default was true, will be false
|
||||
// webPreferences.webviewTag - Default was true, will be false
|
||||
```
|
||||
|
||||
|
||||
# Breaking API Changes (3.0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue