Skip to content

Commit

Permalink
Core - Fix ExecuteScriptAsync infinite recursion
Browse files Browse the repository at this point in the history
Resolves #3914
  • Loading branch information
amaitland committed Nov 30, 2021
1 parent b72d413 commit 51b2c74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CefSharp/WebBrowserExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,7 @@ public static Task<LoadUrlAsyncResponse> LoadUrlAsync(IChromiumWebBrowserBase ch
/// <see cref="EncodeScriptParam"/>, you can provide a custom implementation if you require one.</param>
public static void ExecuteScriptAsync(this IWebBrowser browser, string methodName, params object[] args)
{
var script = GetScriptForJavascriptMethodWithArgs(methodName, args);

browser.ExecuteScriptAsync(script);
browser.BrowserCore.ExecuteScriptAsync(methodName, args);
}

/// <summary>
Expand Down

0 comments on commit 51b2c74

Please sign in to comment.