当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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 件の返信
  • 3 人がこの問題に困っています
  • 3 回表示
  • 最後の返信者: 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

すべての返信 (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