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.

Disable dropping images/links to chromium window

Post Reply
dinko
Posts: 15
Joined: Mon Jan 28, 2019 8:44 am

Disable dropping images/links to chromium window

Post by dinko »

If I drag and drop a link or image from my computer to chromium window it replaces the content with the dropped object.
Is there any way to totally disable drag and drop external resources to my chromium window?

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

Re: Disable dropping images/links to chromium window

Post by salvadordf »

Use TChromium.OnBeforeBrowse and check the "request.url" value to block unwanted URLs.

Read this for more information about that event :
https://magpcss.org/ceforum/apidocs3/pr ... bool,bool)
Post Reply