There is no info about CefBrowser with CefBrowserProcessHandler::OnRenderProcessThreadCreated.
Is there any api or notification that related with CefBrowser?
Czarek wrote:You can use CefRenderProcessHandler::OnBrowserCreated and send IPC message to the Browser precess. In CefClient::OnProcessMessageReceived there is CefBrowser parameter.
Czarek wrote:You shouldn't save context. You can call CefFrame::GetV8Context.
Czarek wrote:If the JS injection is the same for each browser then just send data via extra_args in CefBrowserProcessHandler::OnRenderProcessThreadCreated. To inject JS you can call CefFrame::ExecuteJavaScript.
Streamlet wrote:Czarek wrote:You shouldn't save context. You can call CefFrame::GetV8Context.
Thank you for your pointing out my mistake. I will correct my code.
Streamlet wrote:Our injection is not JavaScript code, but native code with v8 context.
Czarek wrote:Streamlet wrote:Our injection is not JavaScript code, but native code with v8 context.
What do you mean by that?
Users browsing this forum: Majestic-12 [Bot] and 36 guests