From 777d98fa52496bd7d1e993bcab7a84b2b98417db Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 9 Mar 2008 19:48:04 +0000 Subject: Add stub impl of nsILoginManagerPrompter. svn path=/branches/gnome-2-22/; revision=8075 --- embed/mozilla/MozRegisterComponents.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'embed/mozilla/MozRegisterComponents.cpp') diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp index 3960052bf..838bbf69c 100644 --- a/embed/mozilla/MozRegisterComponents.cpp +++ b/embed/mozilla/MozRegisterComponents.cpp @@ -77,6 +77,10 @@ #include "GeckoFormSigningDialog.h" #endif +#ifdef HAVE_GECKO_1_9 +#include "EphyLoginPrompter.h" +#endif + NS_GENERIC_FACTORY_CONSTRUCTOR(EphyAboutModule) NS_GENERIC_FACTORY_CONSTRUCTOR(EphyContentPolicy) NS_GENERIC_FACTORY_CONSTRUCTOR(EphyPromptService) @@ -104,6 +108,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSSecurityWarningDialogs) NS_GENERIC_FACTORY_CONSTRUCTOR(GeckoFormSigningDialog) #endif +#ifdef HAVE_GECKO_1_9 +NS_GENERIC_FACTORY_CONSTRUCTOR(EphyLoginPrompter) +#endif + #define XPINSTALL_CONTRACTID NS_CONTENT_HANDLER_CONTRACTID_PREFIX "application/x-xpinstall" /* class information */ @@ -278,7 +286,15 @@ static const nsModuleComponentInfo sAppComps[] = { EPHY_COOKIEPROMPTSERVICE_CID, EPHY_COOKIEPROMPTSERVICE_CONTRACTID, GeckoCookiePromptServiceConstructor - } + }, +#ifdef HAVE_GECKO_1_9 + { + EPHY_LOGIN_PROMPTER_CLASSNAME, + EPHY_LOGIN_PROMPTER_CID, + NS_LOGINMANAGERPROMPTER_CONTRACTID, + EphyLoginPrompterConstructor + } +#endif }; gboolean -- cgit v1.2.3