mozilla / webmaker-addons

Prototypes for add-ons. Gateways from browser to Webmaker.
http://mozilla.github.io/webmaker-addons/
4 stars 2 forks source link

Clicking/dragging exported PNG in the addon sidebar doesn't do anything useful #44

Open toolness opened 9 years ago

toolness commented 9 years ago

Firefox is really, really, really bad when it comes to getting blobs out of the browser and onto the user's filesystem.

Dragging an image with a blob or data URL to the desktop is completely useless in Firefox (it works fine in Chrome though). Using the download attribute does the job when in a normal browser tab, but in a sidebar it uselessly opens the image in a new browser tab.

We'll likely have to change the sidebar to post a message to the addon, which will then use some obscure, undocumented Gecko API to open a download dialog for the user.

For the time being, though, it looks like users will just need to right-click the image and choose "Save As...".

xmatthewx commented 9 years ago

Good to know. I think that most people will want to share, not download. (Eager downloaders are less likely to need to the addon). Emailing an image might be difficult b/c of this issue.