feature: Hot security tips (#11810)
* 🔧 Add security issue detection (and logs) * 🔧 Check for it on load * 👷 Add some tests * 👷 Make the linter happy * 🔧 Allow them to be enabled by force * 📝 Make message slightly prettier * 🔧 Fix a typo in the code comment * 🔧 Classic mistake * 🚀 Optimize things a bit more * 👷 Add tests, fix tests * 📝 Document things * 🔧 Make linter happy * 🔧 One more piece of cleanup
This commit is contained in:
parent
62d2a3472f
commit
d586ef2f39
10 changed files with 541 additions and 14 deletions
|
@ -29,6 +29,9 @@ app.commandLine.appendSwitch('js-flags', '--expose_gc')
|
|||
app.commandLine.appendSwitch('ignore-certificate-errors')
|
||||
app.commandLine.appendSwitch('disable-renderer-backgrounding')
|
||||
|
||||
// Disable security warnings (the security warnings test will enable them)
|
||||
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true
|
||||
|
||||
// Accessing stdout in the main process will result in the process.stdout
|
||||
// throwing UnknownSystemError in renderer process sometimes. This line makes
|
||||
// sure we can reproduce it in renderer process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue