salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.21k stars 367 forks source link

OnSelectClientCertificate is not been called in CEF 128.0.6613.120 #532

Open grmartins opened 3 days ago

grmartins commented 3 days ago

You can reproduce the issue using the Delphi_VCL\MiniBrowser demo. Just create a breakpoint at Chromium1SelectClientCertificate and navigate to a website that requires user certificate. Using the same demo code with 127.0.6533.100 everything works.

Is there any workaround? Thanks a lot.

salvadordf commented 2 days ago

Hi,

This is a known issue in the CEF project.

Try setting TChromiumCore.RuntimeStyle to CEF_RUNTIME_STYLE_ALLOY and test the demo in a computer with a valid client certificate. If Chromium can't find any valid certificate the event is not triggered.

Read these code comments about the TChromiumCore.RuntimeStyle property.

grmartins commented 2 days ago

The same issue using CEF_RUNTIME_STYLE_ALLOY! Is there anything else I can try?

Thanks

salvadordf commented 1 day ago

I'm sorry but this issue has to be resolved in the CEF project.

If your application requires this feature now then you will have to use CEF4Delphi 127 for the moment. Set GlobalCEFApp.ChromeRuntime to FALSE before the GlobalCEFApp.StartMainProcess call in the DPR file.