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
|
@ -31,6 +31,12 @@ deprecate.warn = (oldName, newName) => {
|
|||
return deprecate.log(`'${oldName}' is deprecated. Use '${newName}' instead.`)
|
||||
}
|
||||
|
||||
deprecate.warnDefault = (propName, oldDefault, newDefault) => {
|
||||
return deprecate.log(`The default value of '${propName}' is changing from \
|
||||
'${oldDefault}' to '${newDefault}' in a future release. If you want to keep \
|
||||
the current value, please explicitly declare the property.`)
|
||||
}
|
||||
|
||||
let deprecationHandler = null
|
||||
|
||||
// Print deprecation message.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue