Erisa/download-image

file:// URIs don't work in Firefox

Closed this issue · 2 comments

Erisa commented

With the current implementation, trying to download a file which is served through a file:// URI doesn't appear to work correctly. Like with #1, this appears as an Access denied error.

Type error for parameter options (Error processing url: Error: Access denied for URL file:///C:/Users/Erisa/Projects/download-image/icons/icon-48.png) for downloads.download.
Erisa commented

I'm not entirely sure this is possible to fix.
On Chrome instead of that error it successfully starts the download but fails due to a "Network error".
image

Erisa commented

It seems on Chrome you can fix this by adding "file:///*/*" to the permissions in the manifest.
I can't find any similar method for Firefox.