]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix release render view with wrong ID
authorCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 08:43:55 +0000 (16:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 08:43:55 +0000 (16:43 +0800)
atom/browser/api/atom_api_web_contents.cc
atom/browser/api/lib/web-contents.coffee

index e87219d3710eff26623db31e1da12fb1fff346c2..85b0e3d8a85c6bb5827aed6465b10c16452be699 100644 (file)
@@ -249,9 +249,7 @@ void WebContents::ExitFullscreenModeForTab(content::WebContents* source) {
 }
 
 void WebContents::RenderViewDeleted(content::RenderViewHost* render_view_host) {
-  Emit("render-view-deleted",
-       render_view_host->GetProcess()->GetID(),
-       render_view_host->GetRoutingID());
+  Emit("render-view-deleted", render_view_host->GetProcess()->GetID());
 }
 
 void WebContents::RenderProcessGone(base::TerminationStatus status) {
index 64aaf2bd415c8dde68059aa4cb44765e3f67e56c..b635ab2a5f26cf1cd43fd6326ae589c7334b91b4 100644 (file)
@@ -32,8 +32,8 @@ wrapWebContents = (webContents) ->
 
   # Tell the rpc server that a render view has been deleted and we need to
   # release all objects owned by it.
-  webContents.on 'render-view-deleted', (event, processId, routingId) ->
-    process.emit 'ATOM_BROWSER_RELEASE_RENDER_VIEW', "#{processId}-#{routingId}"
+  webContents.on 'render-view-deleted', (event, processId) ->
+    process.emit 'ATOM_BROWSER_RELEASE_RENDER_VIEW', processId
 
   # Dispatch IPC messages to the ipc module.
   webContents.on 'ipc-message', (event, packed) ->