We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
114.2.120
Windows 11
x64
4.5.2
WinForms
Fork the Minimal Example of CefSharp.WinForms and modify to run as SelfHosted Cef
Register one async and one sync object like:
m_browser.JavascriptObjectRepository.Register("syncObj", obj1, isAsync: false, options: BindingOptions.DefaultBinder); m_browser.JavascriptObjectRepository.Register("asyncObj", obj2, isAsync: true, options: BindingOptions.DefaultBinder);
m_browser.JavascriptObjectRepository.Register("syncObj", obj1, isAsync: false, options: BindingOptions.DefaultBinder);
m_browser.JavascriptObjectRepository.Register("asyncObj", obj2, isAsync: true, options: BindingOptions.DefaultBinder);
and call CefSharp.BindObjectAsync(); in JavaScript
The Async binding is created, the Sync one is nowhere to be found.
Exposing the Sync-Binding to the global Window
Only exposing the Async-Binding if using it as SelfHost
No response
Haven't found one yet
Not Tested
The cefclient application don't provide tests for JSBindings
From debug.log:
[0802/083647.102:ERROR:JavascriptRootObjectWrapper.cpp(37)] IBrowserProcess is null, unable to bind object testBinding
Only occurs Cef is running as SelfHosted Application
The text was updated successfully, but these errors were encountered:
65eef56
No branches or pull requests
Is there an existing issue for this?
CefSharp Version
114.2.120
Operating System
Windows 11
Architecture
x64
.Net Version
4.5.2
Implementation
WinForms
Reproduction Steps
Fork the Minimal Example of CefSharp.WinForms and modify to run as SelfHosted Cef
Register one async and one sync object like:
m_browser.JavascriptObjectRepository.Register("syncObj", obj1, isAsync: false, options: BindingOptions.DefaultBinder);
m_browser.JavascriptObjectRepository.Register("asyncObj", obj2, isAsync: true, options: BindingOptions.DefaultBinder);
and call CefSharp.BindObjectAsync(); in JavaScript
The Async binding is created, the Sync one is nowhere to be found.
Expected behavior
Exposing the Sync-Binding to the global Window
Actual behavior
Only exposing the Async-Binding if using it as SelfHost
Regression?
No response
Known Workarounds
Haven't found one yet
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
The cefclient application don't provide tests for JSBindings
From debug.log:
[0802/083647.102:ERROR:JavascriptRootObjectWrapper.cpp(37)] IBrowserProcess is null, unable to bind object testBinding
Only occurs Cef is running as SelfHosted Application
The text was updated successfully, but these errors were encountered: