Page 2 of 2

Re: Update to CEF 83.4.0

Posted: Tue Jun 30, 2020 6:56 am
by salvadordf
Try setting request.Url directly. There's no need to call CefCreateUrl.

Code: Select all

request.Url := 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAAC';

Re: Update to CEF 83.4.0

Posted: Wed Jul 01, 2020 1:19 pm
by dilfich
salvadordf wrote: Tue Jun 30, 2020 6:56 am Try setting request.Url directly. There's no need to call CefCreateUrl.

Code: Select all

request.Url := 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAAC';
I tried this of course, unfortunately it doesn't work. I think I've tried all the options using CefCreateUrl, but maybe I'm doing something wrong.

Re: Update to CEF 83.4.0

Posted: Wed Jul 01, 2020 3:14 pm
by salvadordf
It seems that TChromium.OnBeforeBrowse can only be used with HTTP/HTTPS URLs and not DATA URLs.

Perhaps Chromium handles network related requests differently than data requests.

If you really need to do that you can also replace the URL directly in the HTML using the ResponseFilterBrowser demo.