by prasannamavinakuli » Fri Jun 14, 2013 1:47 am
Thank you very much for the reply - We have seen the below implementation.
bool ClientHandler::DoClose(CefRefPtr<CefBrowser> browser) {
REQUIRE_UI_THREAD();
if (m_BrowserId == browser->GetIdentifier()) {
browser->GetMainFrame()->ExecuteJavaScript(
"alert('You pressed the space bar! close is called!!!');", "", 0);
// Since the main window contains the browser window, we need to close
// the parent window instead of the browser window.
CloseMainWindow();
// Return true here so that we can skip closing the browser window
// in this pass. (It will be destroyed due to the call to close
// the parent above.)
return true;
}
But we never got the alert on closing the WM_QUIT. Neither we could not hit the debug point when we enabled. But if I understand your message right, if we invoke a java script from this function it should wait till that java script completes the execution right? Are we missing anything here?
Thanks again and will appreciate your help on this
Prasanna.