The MIME definition is made on the host where Firefox runs, not inside
an XPI package.
Maybe you can use the Options -> Applications menu and its "Mozilla
Platform Cross Installation Module" entry to have Firefox working on the
XPI. This should be "Use Firefox (Standard)" or "Ask", and not "Download".
HTH
Werner