问题
I'm trying to load an extension in cefsharp embedded browser in a WPF project. But application freezes while doing so. Here is the code I have been doing to load a very simple extension:
var setting = new CefSettings();
setting.RegisterExtension(
new V8Extension(
"test",
"document.body.style.backgroundColor='red'"));
Cef.Initialize(setting);
Any help would be appreciated.
来源:https://stackoverflow.com/questions/59334116/how-to-load-an-extension-in-a-cefsharp-wpf-project