I'm using CEF in a WinForms application using the CefSharp wrapper. In their forum I was told to ask my question here, because it seems to be a general CEF question. My application hosts a browser in its main window. Additionaly the user is able to detach certain contents (i.e. chat conversations) that are then opened in a popup window. Opening the popup is done using JavaScript and works fine.
var popup = window.open(...);
When the user clicks the same item again in the main window, the corresponding popup should receive focus and come to front.
if (popup && !popup.closed) popup.focus();
This works fine in standard browsers including chromium. But when I try the same with my embedded CEF control, the popup window doesn't receive focus and stays in the background. Any ideas what I do wrong?