Hello
1. I create a first browser with OSR rendering and load page
2. Next I find a link on page and click it with CefBrowserHost->SendMouseClickEvent()
3. Link has a target=blank attribute and implement CefLifeSpanHandler for catching OnBeforePopup event and create second browser windowless too.
4. When second browser page loaded I register CefV8Handler and execute some JS code for finding buttons on page and click with CefBrowserHost->SendMouseClickEvent()
5. After that I call CefBrowserHost->CloseBrowser(true)
How to return control to first CefBrowser?
I try to implement CefRenderProcessHandler->OnBrowserCreated and OnBrowserDestroyed
OnBrowserCreated called twice, with browser identifier 1 and after creating second browser with identifier 2, but OnBrowserDestroyed not called.
CefFocusHandler how I understand used for page inputs and controls focus, not for browser tabs
Also I tried to save reference to first CefBrowser in global object, but in second browser I get null reference.