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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

BLOB url

Post Reply
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

BLOB url

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

Re: BLOB url

Post by salvadordf »

Hi,

Try using the TChromiumCore.OnBeforeDownload and TChromiumCore.OnDownloadUpdated events to cancel all downloads with the blob URI scheme.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: BLOB url

Post by dilfich »

Maybe I didn't understand something, but there's nothing in the downloadItem, how do I see the link?
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BLOB url

Post 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:"
Post Reply