umpani wrote: Sat Nov 03, 2018 7:14 pm
But where can I put the exceptionhandling for the downloadfunction in the app?
It depends on how you need to show these notifications to the user. I just used a message box in BriskBard but other people prefer to load custom error pages. Read below for more info.
umpani wrote: Sat Nov 03, 2018 7:14 pm
I guess, that the download is threatening by CEF.
These errors are normal HTTP status codes :
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
CEF doesn't include any way to tell if a web page is a threat.
If you need that, you have to implement the "
Google Safe Browsing API" in your application.
https://developers.google.com/safe-browsing/
umpani wrote: Sat Nov 03, 2018 7:14 pm
Can please you give me an example by using your minibrowser demo?
As I mentioned before, this depends on how you want to tell your users that an HTTP error has occurred.
Perhaps the easiest way is to load a local error page as explained here :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=579
Other people prefer to register a custom scheme that shows a custom error page :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=571
I use message windows in BriskBard but these forms needs to be created in the main thread, so I save the error information and send a custom message to the main form to show them.
All these examples use the TChromium.OnLoadError but in case of failed downloads you need to do this in TChromium.OnResourceResponse