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.
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.
BLOB url
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: BLOB url
Hi,
Try using the TChromiumCore.OnBeforeDownload and TChromiumCore.OnDownloadUpdated events to cancel all downloads with the blob URI scheme.
Try using the TChromiumCore.OnBeforeDownload and TChromiumCore.OnDownloadUpdated events to cancel all downloads with the blob URI scheme.
Re: BLOB url
Maybe I didn't understand something, but there's nothing in the downloadItem, how do I see the link?
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: BLOB url
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:"
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:"