@@ -257,18 +257,16 @@ interface ICoreWebView2ExecuteScriptWithResultCompletedHandler : IUnknown {
257257[uuid(67E0B57B-1AC7-4395 -9793 -5E4EF9C4B7D9), object, pointer_default(unique)]
258258interface ICoreWebView2_10 : ICoreWebView2_9 {
259259
260- /// Run JavaScript code from the javascript parameter in the current
261- /// top-level document rendered in the WebView. The result of evaluating
262- /// the provided JavaScript is used in this parameter.
263- /// The result of the execution will be returned in a structure.
264- /// If the execution is successful, the developer can obtain the returned result.
265- /// And if the execution fails, the error/exception information can be obtained.
266-
267- /// This method is applied asynchronously. If the method is
268- /// run after the ` NavigationStarting ` event during a navigation, the script
269- /// runs in the new document when loading it, around the time
270- /// ` ContentLoading ` is run. This operation executes the script even if
271- /// ` ICoreWebView2Settings::IsScriptEnabled ` is set to ` FALSE ` .
260+ /// Run JavaScript code from the javaScript parameter in the current
261+ /// top-level document rendered in the WebView.
262+ /// The result of the execution is returned asynchronously in the CoreWebView2ExecuteScriptResult object
263+ /// which has methods and properties to obtain the successful result of script execution as well as any
264+ /// unhandled JavaScript exceptions.
265+ /// If this method is
266+ /// run after the NavigationStarting event during a navigation, the script
267+ /// runs in the new document when loading it, around the time
268+ /// ContentLoading is run. This operation executes the script even if
269+ /// ICoreWebView2Settings::IsScriptEnabled is set to FALSE.
272270 HRESULT ExecuteScriptWithResult(
273271 [ in] LPCWSTR javaScript,
274272 [ in] ICoreWebView2ExecuteScriptWithResultCompletedHandler* handler);
0 commit comments