Page 1 of 1

Сontent blocking

Posted: Thu Aug 01, 2019 9:53 am
by dilfich

Code: Select all

Result:= RV_CANCEL;
Everything works, but why in the status writes FAILED instead of CANCELED? (ResourceLoadComplete)

Re: Сontent blocking

Posted: Thu Aug 01, 2019 10:21 am
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.