Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

How do I programatically add a download action to firefox desktop as part of my application install (like http://mzl.la/NxCODA but from code).

  • 2 antwurd
  • 3 hawwe dit probleem
  • 3 werjeftes
  • Lêste antwurd fan patpiccolo

more options

I have a Windows application that is intended to work with a specific MIME type. I need to register that MIME type and tell FireFox that when it receives content with this MIME type to NOT display the Open/Save dialog, and instead just pass the stream on to my application, much the same way iTunes registers application/x-itunes-itlp to automatically open iTunes

I have a Windows application that is intended to work with a specific MIME type. I need to register that MIME type and tell FireFox that when it receives content with this MIME type to NOT display the Open/Save dialog, and instead just pass the stream on to my application, much the same way iTunes registers application/x-itunes-itlp to automatically open iTunes

Alle antwurden (2)

more options

That would require to add this MIME type to the mimeTypes.rdf file.

If this application is set as the default program for this MIME type and file extension (HKEY_CLASSES_ROOT) then Firefox should offer it automatically as the first choice and users should only need to tick the box to do automatically use this choice.

more options

Thanks cor-el. The documentation here: http://kb.mozillazine.org/MimeTypes.rdf implies my only options are

a) Allow Firefox (via the UI) to make the changes to the file

b) Take the much more risky approach of editing the file manually.

Yes, I can certainly crack open the mimetype.rdf from code, but the reality is, that is a proprietary file whose structure and use is wholly controlled by mozilla. I would much rather prefer an API that I can at least be involved in notification when its changing instead of just waking up one day and the structure and use of the file is changed.

Since mimetype.rdf doesn't have a version number... how do I know that the changes I'd make today for FireFox 23 to support my custom mimetype work when FireFox 30 comes out? If access to that file was through an API I wouldn't care if FireFox 30 uses a database instead of an RDF file... my code would still work. Does such an API exist, or am I stuck with hacking at the mimetype.rdf