Saving canvas to a file

I think most browsers have a setting where you can dictate what happens for each file type that could be downloaded. So, if my processing script is saving a canvas to XXX.png, I’ll have changed the settings in the browser to save all .png’s to a given folder. In Firefox, go to Settings>General.