简体   繁体   中英

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?

Yes, you can. There is the OnLoadError event that you can handle (error codes you can then find in the ceferr.pas module).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM