Got this weird issue when using CEF1 (chromium 19.0.1084.57) on windows.
I have a CEF browser window which is loaded with an URL through the CreateBrowserSync call itself, after I navigated to another link in the page, I am trying to navigate to another page using the browser->GetMainFrame()->LoadURL() call. I get the OnBeforeBrowse and OnContextCreated callbacks showing that the navigation is taking place. But then I get the OnBeforeClose callback indicating that the browser instance is closing. After I let it continue, the WebViewHost window closes and is no longer in the container dialog.
Now, I haven't gone into the full details of the url being loaded (debugging the JavaScript), but what can be the possible reasons for such a result? i.e. CEF browser window closing during navigation. I can think of one case where a window.close() call is present in the page some place and getting called.
The same URLs are loaded through our IE and gecko embedded browser without such an end result.