I am trying to create a Cef C++ Windows app that has no windows but can execute JavaScript. How can I obtain a JavaScript context if I'm running Cef headless in this way? I know I can get a context from a frame, and a frame from a browser, but if I have no window then I have no browser.
Running normally (with a window), I see that my OnAfterCreated(CefRefPtr<CefBrowser>) is called only after I invoke CefRunMessageLoop(), which I am trying to avoid. Any suggestions?