mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Merge pull request #13604 from atom/mkt-ku-fix-render-process-crash-handler
Ensure a dialog is not opened when webContents crash in headless mode
This commit is contained in:
@@ -150,7 +150,10 @@ class AtomWindow
|
||||
@browserWindow.destroy() if chosen is 0
|
||||
|
||||
@browserWindow.webContents.on 'crashed', =>
|
||||
@atomApplication.exit(100) if @headless
|
||||
if @headless
|
||||
console.log "Renderer process crashed, exiting"
|
||||
@atomApplication.exit(100)
|
||||
return
|
||||
|
||||
@fileRecoveryService.didCrashWindow(this)
|
||||
chosen = dialog.showMessageBox @browserWindow,
|
||||
|
||||
Reference in New Issue
Block a user