Files
cefsharp/CefSharp
Alex Maitland fd46a4c145 Core - Add EvaluateScriptAsPromiseAsync (#3251)
- Add useImmediatelyInvokedFuncExpression param to EvaluateScriptAsync which wraps the script in an IIFE
  with the cefSharpInternalCallbackId variable defined in scope to allow for deferred completion
- Wrap script in Immediately Invoked Function Expression and call promise.resolve to guarantee a promise.
- Return 'CefSharpDefEvalScriptRes' as the result of the js function to defer execution of the callback
- Call newly added cefSharp.sendEvalScriptResponse method in javascript when promise has been resolved/rejected

This is built up of a few parts and can technically be used by the new user to defer the response until they are ready.
Just return `'CefSharpDefEvalScriptRes'` and manually call cefSharp.sendEvalScriptResponse using the cefSharpInternalCallbackId
variable which is injected into the script execution (wrapped in an IIFE to limit scope)
2020-10-06 15:19:37 +10:00
..
2020-10-02 10:25:25 +10:00
2020-02-29 13:16:23 +10:00
2018-09-17 00:46:21 +02:00
2020-09-16 14:31:54 +10:00
2020-01-29 05:36:54 +10:00
2020-01-29 10:22:18 +10:00
2020-01-29 10:22:18 +10:00
2020-01-29 05:36:54 +10:00
2019-06-25 19:24:57 +10:00