Merge pull request #1668 from deepak1556/carsh_events_patch

webContents: adding events to detect gpu and plugin process crashes
This commit is contained in:
Cheng Zhao 2015-05-20 17:51:06 +08:00
commit 9b445c27a2
6 changed files with 49 additions and 1 deletions

View file

@ -724,6 +724,18 @@ Calling `event.preventDefault()` can prevent the navigation.
Emitted when the renderer process is crashed.
### Event: 'gpu-crashed'
Emitted when the gpu process is crashed.
### Event: 'plugin-crashed'
* `event` Event
* `name` String
* `version` String
Emitted when a plugin process is crashed.
### Event: 'destroyed'
Emitted when the WebContents is destroyed.

View file

@ -434,6 +434,17 @@ ipc.on('ping', function() {
Fired when the renderer process is crashed.
### gpu-crashed
Fired when the gpu process is crashed.
### plugin-crashed
* `name` String
* `version` String
Fired when a plugin process is crashed.
### destroyed
Fired when the WebContents is destroyed.