ugetdm / uget-integrator

Native messaging host to integrate uGet Download Manager with web browsers
GNU General Public License v3.0
339 stars 38 forks source link

uGet extension: black listed mime types not always working on Firefox #79

Open AXeL-dev opened 4 years ago

AXeL-dev commented 4 years ago

On the latest Firefox version (69.0.1) & even before this version, i noticed that the uget-extension black listed mime types do not always work, especially with images like png/jpg/jpeg, & when i tried to investigate about that i found that sometimes the value of the file mime type is null (check the screenshot below)

Deepin Capture-écran_zone de sélection _20191013003717

So as a simple solution, i think that we could extract the file extension from the filename & use it as the mime type when this one is equal to null.