[X] I have searched both open/closed issues, no issue already exists.
CefSharp Version
126.2.70.0
Operating System
Windows 11
Architecture
x64
.Net Version
.NET 4.8
Implementation
WinForms
Reproduction Steps
Clear ChromiumWebBrowser cache (directory)
Use a website which contains a Javascript. This Javascript executes a"fetch"-Method to an URL with a self signed certificate (e.g. https://self-signed.badssl.com/)
Create a new ChromiumWebBrowser instance and set as RequestHandler a handler which overrides "OnCertificateError". In "OnCertificateError" accept any certificate.
Load the website
Expected behavior
"OnCertificateError" should be fired when the javascript fetch will be executed.
Actual behavior
OnCertificateError will not fired.
Regression?
No response
Known Workarounds
If I set in the global settings "IgnoreCertificateErrors" to true it works. The problem is here I cannot use it because we have in the same process two browser instances. I need the certificate ignore flag only on one instance or for one url. Maybe somebody knows a setting for doing this.
Does this problem also occur in the CEF Sample Application
Is there an existing issue for this?
CefSharp Version
126.2.70.0
Operating System
Windows 11
Architecture
x64
.Net Version
.NET 4.8
Implementation
WinForms
Reproduction Steps
Expected behavior
"OnCertificateError" should be fired when the javascript fetch will be executed.
Actual behavior
OnCertificateError will not fired.
Regression?
No response
Known Workarounds
If I set in the global settings "IgnoreCertificateErrors" to true it works. The problem is here I cannot use it because we have in the same process two browser instances. I need the certificate ignore flag only on one instance or for one url. Maybe somebody knows a setting for doing this.
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
No response