- Code: Select all
void OnContextCreated(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context) override
{
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
bool success = context->Eval("(document.getElementsByClassName('myClass')[0].getBoundingClientRect())", CefString(), 0, retval, exception);
/* stuff with retval */
}
This raises leads to a crash only when using the getBoundingClientRect function.
The code crash with the following message : [1106/144536.226:FATAL:LayoutTreeBuilder.h(66)] Check failed: node.InActiveDocument().
I am using 3202 cef version.