From 4569b85f368ed17aa507da02007dd2c6c28e2072 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 18 Nov 1999 08:39:40 +0000 Subject: [PATCH] Bug #14928 register our x-application-mailto content handler register mailto url protocol r=sspitzer --- mailnews/compose/build/nsMsgCompFactory.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mailnews/compose/build/nsMsgCompFactory.cpp b/mailnews/compose/build/nsMsgCompFactory.cpp index fcbfb9dc0e51..1fcd89e8b12c 100644 --- a/mailnews/compose/build/nsMsgCompFactory.cpp +++ b/mailnews/compose/build/nsMsgCompFactory.cpp @@ -52,6 +52,7 @@ #include "nsIMsgDraft.h" #include "nsMsgCreate.h" // For drafts...I know, awful file name... #include "nsSmtpServer.h" +#include "nsIContentHandler.h" NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpService); NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpServer); @@ -64,6 +65,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgComposeService); NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgQuote); NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgQuoteListener); NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpUrl); +NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailtoUrl); //////////////////////////////////////////////////////////// // @@ -79,6 +81,10 @@ static nsModuleComponentInfo components[] = NS_MSGCOMPOSESERVICE_CID, NS_MSGCOMPOSESERVICE_PROGID, nsMsgComposeServiceConstructor }, + { "mailto content handler", + NS_MSGCOMPOSESERVICE_CID, + NS_CONTENT_HANDLER_PROGID_PREFIX"x-application-mailto", + nsMsgComposeServiceConstructor }, { "Msg Compose Fields", NS_MSGCOMPFIELDS_CID, NS_MSGCOMPFIELDS_PROGID, @@ -111,6 +117,10 @@ static nsModuleComponentInfo components[] = NS_SMTPURL_CID, NS_SMTPURL_PROGID, nsSmtpUrlConstructor }, + { "MAILTO URL", + NS_MAILTOURL_CID, + NS_MAILTOURL_PROGID, + nsMailtoUrlConstructor }, { "Msg Quote", NS_MSGQUOTE_CID, NS_MSGQUOTE_PROGID,