Fix release render view with wrong ID
This commit is contained in:
parent
015ef3e014
commit
1f97cee7c9
2 changed files with 3 additions and 5 deletions
|
@ -249,9 +249,7 @@ void WebContents::ExitFullscreenModeForTab(content::WebContents* source) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::RenderViewDeleted(content::RenderViewHost* render_view_host) {
|
void WebContents::RenderViewDeleted(content::RenderViewHost* render_view_host) {
|
||||||
Emit("render-view-deleted",
|
Emit("render-view-deleted", render_view_host->GetProcess()->GetID());
|
||||||
render_view_host->GetProcess()->GetID(),
|
|
||||||
render_view_host->GetRoutingID());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::RenderProcessGone(base::TerminationStatus status) {
|
void WebContents::RenderProcessGone(base::TerminationStatus status) {
|
||||||
|
|
|
@ -32,8 +32,8 @@ wrapWebContents = (webContents) ->
|
||||||
|
|
||||||
# Tell the rpc server that a render view has been deleted and we need to
|
# Tell the rpc server that a render view has been deleted and we need to
|
||||||
# release all objects owned by it.
|
# release all objects owned by it.
|
||||||
webContents.on 'render-view-deleted', (event, processId, routingId) ->
|
webContents.on 'render-view-deleted', (event, processId) ->
|
||||||
process.emit 'ATOM_BROWSER_RELEASE_RENDER_VIEW', "#{processId}-#{routingId}"
|
process.emit 'ATOM_BROWSER_RELEASE_RENDER_VIEW', processId
|
||||||
|
|
||||||
# Dispatch IPC messages to the ipc module.
|
# Dispatch IPC messages to the ipc module.
|
||||||
webContents.on 'ipc-message', (event, packed) ->
|
webContents.on 'ipc-message', (event, packed) ->
|
||||||
|
|
Loading…
Reference in a new issue