diff options
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r-- | embed/mozilla/MozRegisterComponents.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp index d6e79f697..29079aff2 100644 --- a/embed/mozilla/MozRegisterComponents.cpp +++ b/embed/mozilla/MozRegisterComponents.cpp @@ -29,6 +29,10 @@ #include "ExternalProtocolService.h" #include "EphyAboutRedirector.h" +#ifdef HAVE_MOZILLA_PSM +#include "GtkNSSDialogs.h" +#endif + #include <nsIGenericFactory.h> #include <nsIComponentRegistrar.h> #include <nsCOMPtr.h> @@ -47,6 +51,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GFtpProtocolHandler) NS_GENERIC_FACTORY_CONSTRUCTOR(GNewsProtocolHandler) NS_GENERIC_FACTORY_CONSTRUCTOR(GExternalProtocolService) +#ifdef HAVE_MOZILLA_PSM +NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSDialogs) +#endif + static const nsModuleComponentInfo sAppComps[] = { { G_EXTERNALPROTOCOLSERVICE_CLASSNAME, @@ -72,6 +80,14 @@ static const nsModuleComponentInfo sAppComps[] = { G_FILEPICKER_CONTRACTID, GFilePickerConstructor }, +#ifdef HAVE_MOZILLA_PSM + { + GTK_NSSDIALOGS_CLASSNAME, + GTK_NSSDIALOGS_CID, + NS_BADCERTLISTENER_CONTRACTID, + GtkNSSDialogsConstructor + }, +#endif { NS_IHELPERAPPLAUNCHERDLG_CLASSNAME, G_CONTENTHANDLER_CID, |