当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、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.

詳しく学ぶ

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

Custom protocol handler does not get arguments

  • 1 件の返信
  • 1 人がこの問題に困っています
  • 9 回表示
  • 最後の返信者: cor-el

more options

Dear community,

I am trying to handle custom protocol with Firefox, but Firefox does behave as it should. I would like to open the protocol "foo" with a custom application.

- In "about:config", I have added the following key: network.protocol-handler.expose.foo

- I set its value to false.

- I made a link on a webpage pointing to 'foo:bar'.

- I clicked on the link.

- I chose my application, which just displays the argument list.

- The argument list is always empty (was expecting 'bar' or 'foo:bar' or something).

- Instead of my application, I tried to use the mail client (for debugging purpose, ultimately I want my application to be run).

- I clicked on the link.

- The mail client run, but I get an error: "The operation couldn’t be completed. (MCMailErrorDomain error 1030.). No associated application could be found".

- I changed the link to 'mailto:bar'.

- I clicked on the link.

- The mail client open normally and create an email with 'bar' as recipient.

It seems Firefox is not handling custom protocol the same way it handles 'mailto'. What can I do to solve this issue?

Dear community, I am trying to handle custom protocol with Firefox, but Firefox does behave as it should. I would like to open the protocol "foo" with a custom application. - In "about:config", I have added the following key: network.protocol-handler.expose.foo - I set its value to false. - I made a link on a webpage pointing to 'foo:bar'. - I clicked on the link. - I chose my application, which just displays the argument list. - The argument list is always empty (was expecting 'bar' or 'foo:bar' or something). - Instead of my application, I tried to use the mail client (for debugging purpose, ultimately I want my application to be run). - I clicked on the link. - The mail client run, but I get an error: "The operation couldn’t be completed. (MCMailErrorDomain error 1030.). No associated application could be found". - I changed the link to 'mailto:bar'. - I clicked on the link. - The mail client open normally and create an email with 'bar' as recipient. It seems Firefox is not handling custom protocol the same way it handles 'mailto'. What can I do to solve this issue?

この投稿は slagt により に変更されました

すべての返信 (1)

more options

Did you try to specify a valid link (email: mailto://xx@xx.com; foo: foo://<file to pass>)? When Firefox isn't able to send the file then it might fail silently.

You can check the handlers.json file in the profile folder.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:preferences page.