CefSharp
CefSharp copied to clipboard
Feature Request - Improve Async JavaScript Binding Support
- [ ] Generate get/set methods for properties that return simple type bool/string etc
- [ ] Generate sub bound object for properties that return complex types allowing for their methods to be called.
- [x] Add support for methods that return
Task
(See #2758)
New issues will be created to track the issues independently when it's time to implement them.
This should bring the Async version in line with the sync version feature wise.
If/When. NET core is support we will have to conditionally exclude the sync version as it relies on WCF which Microsoft have recently announced will not be included.
The new WebView2
has some interesting features that might be worth implementing, https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms#step-8---communication-between-host-and-web-content
Evaluate
- [ ] PostWebMessageAsString
- [ ] AddScriptToExecuteOnDocumentCreatedAsync (we have something similar already, review to see if theirs is a better idea)
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/0-9-488/icorewebview2#postwebmessageasjson