Is there an existing issue for this?
CefSharp Version
117.2.40
Operating System
Windows 10
Architecture
x64
.Net Version
.net 6.0
Implementation
OffScreen
Reproduction Steps
Version: Above 108
Steps:
Create instance of CefSharp.OffScreen.ChromiumWebBrowser
br = CefSharp.OffScreen.ChromiumWebBrowser();
Go by url 2 times:
br.Load(url)
await br.EvaluateScriptAsPromiseAsync(script);
br.Load(url)
await br.GetSourceAsync();
br.Load(url)
Fulfill JS
_browser.EvaluateScriptAsPromiseAsync(script)
Expected behavior
Fulfilling of JS
Actual behavior
JS Error Request BrowserId : 1 not found it's likely the browser is already closed
Regression?
After regression to version 108 problem dissapeared.
Known Workarounds
Likely problem is here
https://github.com/cefsharp/CefSharp/blob/master/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp
Look at history..
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
No response