Page 1 of 1
BLOB url
Posted: Wed Apr 23, 2025 7:21 am
by dilfich
Hi, I want to block the download of links.
blob:https://
But they are not displayed in BeforeResourceLoad, is there any other option to block them?
You can see them in devtools without any problems.
Re: BLOB url
Posted: Wed Apr 23, 2025 12:54 pm
by salvadordf
Hi,
Try using the TChromiumCore.OnBeforeDownload and TChromiumCore.OnDownloadUpdated events to cancel all downloads with the blob URI scheme.
Re: BLOB url
Posted: Wed Apr 23, 2025 2:00 pm
by dilfich
Maybe I didn't understand something, but there's nothing in the downloadItem, how do I see the link?
Re: BLOB url
Posted: Thu Apr 24, 2025 9:19 am
by salvadordf
Hi,
I just checked downloading a blob image manually as described here :
https://www.briskbard.com/forum/viewtopic.php?t=2527
The TMiniBrowserFrm.Chromium1DownloadUpdated procedure in MiniBrowser is triggered with a valid "downloadItem" for the blob image.
Call callback.cancel in that event when downloadItem.Url starts with "blob:"