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:
Michelle Tilley
2017-01-13 10:58:49 -08:00
committed by GitHub

View File

@@ -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,