We currently use chromedriver to test our application which use multiple CefClient. We encounter a problem when trying to use contexts in order to execute javascript:
without using chromedriver, everything works fine, contexts included.
But with chromedriver, during javascript execution (CefV8Handler::Execute()) every context is null.
For example, from the wiki:
- Code: Select all
bool MyV8Handler::Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) {
if (name == "register") {
if (arguments.size() == 1 && arguments[0]->IsFunction()) {
callback_func_ = arguments[0];
callback_context_ = CefV8Context::GetCurrentContext(); // <== callback_context_ is NULL
return true;
}
}
return false;
}
We are running on Linux 64, Ubuntu 14.04 and CEF 2171
Is this a known problem or is it related only to Chromedriver ?
Thanks.