I want to register a custom protocol handler in Firefox/Linux
Hi,
I am trying the usual methods to register a protocol handler for my local application. Meaning, I created these values in about:config:
network.protocol-handler.app.javax = /home/stefan/bin/j network.protocol-handler.expose.javax = false network.protocol-handler.external.javax = true
However, when I type "javax:test" in the URL bar, it sends me to Google.
الحل المُختار
When you would create only network.protocol-handler.expose.javax = false then Firefox should prompt for the application to handle this protocol and add this protocol to mimeTypes.rdf. Testing/forcing this javax protocol via the location/address bar wouldn't work.
This works for me to force a dialog to select the application:
- data:text/html,%3Ca href="javax%3Atest.com"%3E%26lt;javax:test.com%26gt;%3C/a%3E
All Replies (2)
الحل المُختار
When you would create only network.protocol-handler.expose.javax = false then Firefox should prompt for the application to handle this protocol and add this protocol to mimeTypes.rdf. Testing/forcing this javax protocol via the location/address bar wouldn't work.
This works for me to force a dialog to select the application:
- data:text/html,%3Ca href="javax%3Atest.com"%3E%26lt;javax:test.com%26gt;%3C/a%3E
Yesss!! I see now, it doesn't work in the address line (why not?). With a link, all fine. Thanks!