Delphi CEF Check if site is not reachable

Multi tool use
Delphi CEF Check if site is not reachable
I'm use CEF 3.2623.1401.gb90a3be (Chromium 49.0.2623.110) in my project in Delphi 10.1. (I have to use a fairly old version of CEF/Chromium for backwards compatibility with WinXP). How do I can check if a site is not reachable? if I try to open any obviously non-existent or inaccessible site in a normal Chrome browser - I get an error like DNS_PROBE_FINISHED_NXDOMAIN
or ERR_INTERNET_DISCONNECTED
, but in my embedded Chromium I get just a blank page without anything. Can I somehow catch such errors in Chromium?
DNS_PROBE_FINISHED_NXDOMAIN
ERR_INTERNET_DISCONNECTED
1 Answer
1
Yes, you can. There is the OnLoadError event that you can handle (error codes you can then find in the ceferr.pas module).
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.