Open
Bug 953953
Opened 11 years ago
Updated 2 years ago
Register protocol handlers for IM protocols like irc://
Categories
(Chat Core :: General, enhancement)
Chat Core
General
Tracking
(Not tracked)
NEW
People
(Reporter: benediktp, Unassigned)
References
Details
*** Original post on bio 516 at 2010-09-21 13:04:00 UTC ***
Several services offer urls that can be handled by a protocol handler. For example aim: or irc:
Enhancement request: implement support for this.
Reporter | ||
Comment 1•11 years ago
|
||
*** Original post on bio 516 at 2010-09-21 13:12:25 UTC ***
This leaves the question of How?
What should happen if a url states that message should be send? AIM can do that afaik and it is in the Mozilla irc urls 'spec'.
CC'ing Patrick Cloke, as he has investigated about this earlier.
Comment 2•11 years ago
|
||
*** Original post on bio 516 at 2010-09-21 13:37:22 UTC ***
The official AIM client simple opens the conversation and fills in the text and the user must /manually/ click "Send." I think this is the way to go in all situations. Although what if a user doesn't even have an account created for that type? Do we still register as default in the OS? Do we open the account manager and autofill information?
Thunderbird code to look at:
http://mxr.mozilla.org/comm-central/source/mail/components/nsMailDefaultHandler.js (command line handler)
http://mxr.mozilla.org/comm-central/source/mail/components/shell/ (OS integration to register as default)
http://mxr.mozilla.org/comm-central/source/mail/components/mailContentHandler.js (internal link handler?)
I'm not sure the third one needs to be implemented.
URL schemes I've identified we should look into implemented (* indicate its a network we don't currently support):
aim
*callto
gg
*gizmoproject
gtalk
im/xmpp
irc/ircs/irc6
msnim
*skype
ymsgr
*xfire
Mic found some info on the IRC scheme (it actually has an RFC draft):
http://tools.ietf.org/html/draft-butcher-irc-url
http://tools.ietf.org/html/draft-mirashi-url-irc-01
http://www.mozilla.org/projects/rt-messaging/chatzilla/irc-urls.html
IM RFC:
http://tools.ietf.org/html/rfc3860
XMPP RFCs:
http://tools.ietf.org/html/rfc4622
http://tools.ietf.org/html/rfc5122
A good general reference is Wikipedia: http://en.wikipedia.org/wiki/URI_scheme (has links to specs where available)
Comment 3•11 years ago
|
||
*** Original post on bio 516 at 2010-09-21 15:52:31 UTC ***
Another passing thought about this. It seems that Thunderbird includes all the handlers in one big file, but it might be more beneficial to abstract out a general instant messaging handler type and then register each one separately using that to allow protocol extensions to easily add their own handlers. I'm not sure how easy/feasible that would be however.
Reporter | ||
Comment 4•11 years ago
|
||
*** Original post on bio 516 at 2010-09-21 16:08:31 UTC ***
(In reply to comment #3)
> Another passing thought about this. It seems that Thunderbird includes all the
> handlers in one big file, but it might be more beneficial to abstract out a
> general instant messaging handler type and then register each one separately
> using that to allow protocol extensions to easily add their own handlers. I'm
> not sure how easy/feasible that would be however.
Each protocol plugin bringing its own code for handling the associated url scheme seems to be a good solution. Hardcoding a few special cases somewhere else sounds just wrong.
CC'ing Florian.
Comment 5•11 years ago
|
||
*** Original post on bio 516 at 2011-01-18 17:23:01 UTC ***
Good link (actually from Mic via IRC) about how to make a command line handler: http://mike.kaply.com/2011/01/18/writing-a-firefox-protocol-handler/
Comment 6•11 years ago
|
||
*** Original post on bio 516 at 2011-01-18 17:39:23 UTC ***
(In reply to comment #5)
> Good link (actually from Mic via IRC) about how to make a command line handler:
> http://mike.kaply.com/2011/01/18/writing-a-firefox-protocol-handler/
So, this is actually about a slightly different issue: this is for protocol handlers for links in our conversations, etc. Not for command line handlers, but both are necessary at some point.
Reporter | ||
Comment 7•11 years ago
|
||
*** Original post on bio 516 at 2011-01-18 18:28:16 UTC ***
How to add a protocol handler on Windows:
> http://msdn.microsoft.com/en-us/library/aa767914%28v=VS.85%29.aspx
Reporter | ||
Comment 8•11 years ago
|
||
*** Original post on bio 516 at 2011-01-18 19:53:09 UTC ***
More information:
> http://kb.mozillazine.org/Register_protocol
Gnome:
> http://people.w3.org/~dom/archives/2005/09/integrating-a-new-uris-scheme-handler-to-gnome-and-firefox/
KDE:
> http://www.last.fm/forum/21714/_/42837/1#f430232
Updated•9 years ago
|
Component: Other → General
Product: Instantbird → Chat Core
Updated•6 years ago
|
Summary: Register protocol handlers for IM protocols → Register protocol handlers for IM protocols like irc://
Comment 10•4 years ago
|
||
It is possible to add support?
- RFC5122: Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP): https://tools.ietf.org/html/rfc5122
- XEP-0147: XMPP URI Scheme Query Components: https://xmpp.org/extensions/xep-0147.html
Examples:
- xmpp:romeo@montague.net
- xmpp:romeo@montague.net?message
- xmpp:romeo@montague.net?message;subject=Test%20Message;body=Here%27s%20a%20test%20message
- xmpp:romeo@montague.net?roster
- xmpp:romeo@montague.net?roster;name=Romeo%20Montague
- xmpp:romeo@montague.net?roster;name=Romeo%20Montague;group=Friends
- xmpp:romeo@montague.net?remove
- xmpp:romeo@montague.net?subscribe
- xmpp:romeo@montague.net?unsubscribe
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•