Can you override/customise the CefBrowserHost::CloseBrowser(false) method somehow?
What I need is:
To stop the browser close event before the "onbeforeunload" event is triggered.
What I do at the moment is:
Override "CefLifeSpanHandler::DoClose()" and add custom close behaviour but that is too late since "onbeforeunload" has been called already.
Why I need this, is:
Because I am using a hughe framework that does something on the "onbeforeunload" event. And I only want that to happen when I actually close the browser, not when I intercept the close event in CEF3.
Btw: I am using the "cefsimple" client. All that window stuff, event messages, etc. is encapsulated there. And I would like to avoid implementing everything myself now, since this is the last little issue I am encountering.
Thank you already!