I need to hide javascript alert dialogs so I've implemented CefJSDialogHandler in main process, but it does not work.
In CefJSDialogHandler::OnJSDialog I'm setting supress_message to true and returning false.
I've placed break points in debugger on all methods. When dialog is going to open, the GetJSDialogHandler is called where I return my handler, but the CefJSDialogHandler::OnJSDialog is not called, just standard dialog is opened. When I close the dialog, GetJSDialogHandler is called again, finally CefJSDialogHandler::OnDialogClosed is called.
I'm trying it on MacOS, CEF 3.3325. Any idea what could be wrong? Thank you