Search Support

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.

Learn More

Define a new protocol

  • 3 replies
  • 3 have this problem
  • 14 views
  • Last reply by cor-el

more options

Hi

Have an app that includes URLs to documents stored in eXist DB. They usually start with xmldb:exist://, but Firefox does not know how to handle these, neither it asks how to proceed.

Is there any way to tell Firefox to open a specific app to open that URL?

Thank you in advance. Alberto

Hi Have an app that includes URLs to documents stored in eXist DB. They usually start with xmldb:exist://, but Firefox does not know how to handle these, neither it asks how to proceed. Is there any way to tell Firefox to open a specific app to open that URL? Thank you in advance. Alberto

All Replies (3)

more options

I found out that I can make the property 'network.protocol-handler.expose-all' false, and Firefox will query me about what application to use. For now, it is good enough.

But if anyone knows of the correct way to create a plugin or add-on to define a new protocol, I would welcome.

more options

It seems we can define a new key, 'network.protocol-handler.expose.XXX' as false (boolean value), where XXX is the name of the protocol. I ended up using the oxygen:/ protocol that oXygen XML Developer recognizes.

Now my problem is how this URL is sent to the application. I am trying to find out, with no luck. Anybody knows if it is passed as an argument to the app, to the STDIN or any other way (preferably for Mac OS)?

Thanks

more options

See also:

Such protocol settings are stored in the mimeTypes.rdf file in the Firefox profile folder.