Skip to content

Commit 59a62f2

Browse files
committed
Core - Fix ExecuteScriptAsync infinite recursion
Resolves cefsharp#3914
1 parent a152b2e commit 59a62f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎CefSharp/WebBrowserExtensions.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,7 @@ public static Task<LoadUrlAsyncResponse> LoadUrlAsync(IChromiumWebBrowserBase ch
471471
/// <see cref="EncodeScriptParam"/>, you can provide a custom implementation if you require one.</param>
472472
public static void ExecuteScriptAsync(this IWebBrowser browser, string methodName, params object[] args)
473473
{
474-
var script = GetScriptForJavascriptMethodWithArgs(methodName, args);
475-
476-
browser.ExecuteScriptAsync(script);
474+
browser.BrowserCore.ExecuteScriptAsync(methodName, args);
477475
}
478476

479477
/// <summary>

0 commit comments

Comments
 (0)