I'm using cefglue to navigate on a multi popup website.
I need to catch those popup to embed them into my own control (winform).
So I override the function to catch the popup creation by handling this myself (and return true to not let the real popup opening).
- Code: Select all
CefLifeSpanHandler -> OnBeforePopup
I also override the function
- Code: Select all
CefLifeSpanHandler -> OnAfterCreated
to call the event
- Code: Select all
CefWebBrowser -> OnBrowserAfterCreated
It's working well, so I'm able to display the popup in my control, and the popup navigation is successfull.
But I got a problem, my custom popup browser could not communicate with the opener browser.
And I do not understand how set the opener_window_handle on my custom popup browser (handle null)
If I let the regular popup open ("return false" info OnBeforePopup), the popup can communicate with the opener correctly, because the browser opener_window_handle is correctly set.
Does someone knows how to handle custom popup with cefglue, and let them communicate with opener correctly ?
Thanks !