Update to CEF 83.4.0

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

Re: Update to CEF 83.4.0

Post by salvadordf » 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';

dilfich
Posts: 204
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 83.4.0

Post by dilfich » Wed Jul 01, 2020 1:19 pm

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: 2495
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.0

Post by salvadordf » Wed Jul 01, 2020 3:14 pm

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