Skip to content

Commit

Permalink
set force close only when dealing with top frames
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Apr 24, 2014
1 parent e5a6011 commit 9d8b792
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/renderer/shell_content_renderer_client.cc
Expand Up @@ -354,8 +354,12 @@ void ShellContentRendererClient::InstallNodeSymbols(
int ret;
RenderViewImpl* render_view = RenderViewImpl::FromWebView(frame->view());

render_view->Send(new ShellViewHostMsg_SetForceClose(
if (frame->parent() == NULL) {
// do this only for top frames, or initialization of iframe
// could override parent settings here
render_view->Send(new ShellViewHostMsg_SetForceClose(
render_view->GetRoutingID(), true, &ret));
}
}
}

Expand Down

0 comments on commit 9d8b792

Please sign in to comment.