Define a new protocol
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)
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.
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
See also:
Such protocol settings are stored in the mimeTypes.rdf file in the Firefox profile folder.