CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Feature Request - Improve Async JavaScript Binding Support

Open amaitland opened this issue 5 years ago • 1 comments

  • [ ] 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.

amaitland avatar May 09 '19 22:05 amaitland

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

amaitland avatar May 14 '20 23:05 amaitland