In order to call a javascript function and get the result value back I either use 'alert' and get the response through handle_jsalert or use a registered V8 extension function. In any case there's the need to call execute_java_script and then cef_do_message_loop_work to have the handle callback being executed, but cef_do_message_loop_work causes the application message loop to be processed too which is causing me some unwanted behaviour.
Any tip on how to execute a JS function, get the result value back and don't have the application message loop being processed in the meantime? I may be missing some obvious solution...