[0223/161321.161:FATAL:V8Initializer.cpp(80)]
Is something changed between these versions which I am missing?
Code below
- Code: Select all
internal sealed class RenderProcessHandler : CefRenderProcessHandler
{
MyCustomCefV8Handler myCefV8Handler = new MyCustomCefV8Handler();
protected override void OnWebKitInitialized()
{
var nativeFunction = @"gmApi = function(jsonArg) {
native function MyNativeFunction(jsonArg);
return MyNativeFunction(jsonArg);
};
";
CefRuntime.RegisterExtension("MessageEvent", nativeFunction, myCefV8Handler);
base.OnWebKitInitialized();
}
}
internal class MyCustomCefV8Handler : CefV8Handler
{
protected override bool Execute(string name, CefV8Value obj, CefV8Value[] arguments, out CefV8Value returnValue, out string exception)
{
returnValue = CefV8Value.CreateString("");
ReceiveJsFunctionCall(arguments, ref returnValue);
exception = null;
return true;
}
}