We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
121.3.70
Windows 11
x64
NET 8.0
WPF
private async void Browser_LoadingStateChanged(object? sender, CefSharp.LoadingStateChangedEventArgs e) { string script = @"document.querySelector('someelement')"; var response = await Browser.GetFocusedFrame().EvaluateScriptAsync(script, null); if (response.Success) {
It works OK. 2. In order to make browser working with SelfContained=true (see #3407) add code sninppet from MinimalExample https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.Wpf/Program.PublishSingleFile.cs This is the most valuable part.
var settings = new CefSettings() { CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache"), BrowserSubprocessPath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName }; Cef.Initialize(settings, performDependencyCheck: false);
EvaluateScriptAsync should work for app with SelfContained=true
EvaluateScriptAsync hangs for app with SelfContained=true and workaround from MinimalExample
No response
Not Tested
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
CefSharp Version
121.3.70
Operating System
Windows 11
Architecture
x64
.Net Version
NET 8.0
Implementation
WPF
Reproduction Steps
It works OK.
2. In order to make browser working with SelfContained=true (see #3407) add code sninppet from MinimalExample https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.Wpf/Program.PublishSingleFile.cs
This is the most valuable part.
Expected behavior
EvaluateScriptAsync should work for app with SelfContained=true
Actual behavior
EvaluateScriptAsync hangs for app with SelfContained=true and workaround from MinimalExample
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
No response
The text was updated successfully, but these errors were encountered: