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.

Update to CEF 83.4.0

User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.0

Post by salvadordf »

Try setting request.Url directly. There's no need to call CefCreateUrl.

Code: Select all

request.Url := 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAAC';
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 83.4.0

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.0

Post 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.
Post Reply