webContents: adding events to detect gpu and plugin process crashes
This commit is contained in:
parent
b238ac5981
commit
c548b9c87e
6 changed files with 49 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue