I wonder if possible to pass “window” object via global context at CEF.
I tried the next way
e.g
get the pV8 object and pass it as parameter to other context.
- Code: Select all
CefRefPtr<CefV8Value> myPv8 = context->GetGlobal();
I want to keep myPv8 on static object.
And pass it to other page e.g.
- Code: Select all
pV8->SetValue("myPV", myPv8, V8_PROPERTY_ATTRIBUTE_NONE);
even when its on the same render process I get this error in the output log while trying to call the SetValue function
[5040] [1228/164909.805:FATAL:v8_impl.cc(2019)] Check failed: false. invalid input parameter
Any idea if its feasible at all ? or how to do it correctly ?
Thanks on any direction
Yaniv