Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Сontent blocking

Post Reply
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Сontent blocking

Post by dilfich »

Code: Select all

Result:= RV_CANCEL;
Everything works, but why in the status writes FAILED instead of CANCELED? (ResourceLoadComplete)
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Сontent blocking

Post by salvadordf »

The TCefUrlRequestStatus type for the status parameter in TOnResourceLoadComplete seems to be correctly declared in uCEFTypes.pas.
https://github.com/salvadordf/CEF4Delph ... s.pas#L825
https://bitbucket.org/chromiumembedded/ ... lines-1280

That parameter is passed without modification from CEF to Delphi. Perhaps there's a bug in Chromium or CEF but I would ignore it if you know that frame.url was canceled.
Post Reply