aesqe / firefox-downloads-sidebar

A Firefox web extension that displays a list of your recent downloads in the sidebar
https://addons.mozilla.org/en-US/firefox/addon/downloads-sidebar/
MIT License
17 stars 3 forks source link

Feature request: Drag and drop downloaded file to Windows File Explorer #10

Closed syldub69 closed 6 years ago

syldub69 commented 6 years ago

It would be great to be able to drag and drop the downloaded file to Windows File Explorer with support of SHIFT (move) or CRTL (copy). I mean, to provide the same feature as the Firefox download windows: image

josalhor commented 6 years ago

Hi,

I've answered a similar question here: https://github.com/aesqe/firefox-downloads-sidebar/issues/5

But your question is focused on the WFE. So even if the current limitation of the CSP was removed, I don't think it would be possible to access the low level that it requires to make it feature possible.

It would require dragging not to the browser, to the desktop. Which doesn't seems possible.

Not only that, even if dragging at that level was available, you would need to call a file movement or / copy and have the ability to do so at any folder in the system, not some kind of local, limited by an API, thing.

So I'm sorry to say this is not possible. Especially because I really want this feature myself.

Edit: after looking at little bit more at the documentation it seems like I jumped way too soon claiming this is not possible. I'm still looking into it.

aesqe commented 6 years ago

Unfortunately, no, it's currently not possible, for security reasons.

aesqe commented 6 years ago

Actually, I might have closed this too soon, there is a section about this here: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#filestoos

I'll try to test it out this weekend.

aesqe commented 6 years ago

I've finally had some time to try this out. Unfortunately, these are old docs for XPCOM add-ons. Web extensions don't have the needed interfaces for this, yet.