When the user tries to download an XPI plugin (.xpi file) by clicking on its link, Firefox automatically tries to install it. The user has to right click on the link and manually chose "Save Link As" in order to save the file.
XPI isn't present in Preferences - "Files and applications". "What should Firefox do with other files?" is set to "Ask to open or save files".
It would be useful to have an option to download XPI files, by choosing "Save file" either for XPI files in Files and applications, or in the dialog when Firefox asks to open or save the file.