aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-26 06:08:01 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-26 06:08:01 +0800
commitc951555722d4933277a1d468c6508f5ad34711b1 (patch)
tree13d85691d343cc9315e9c172df44d5d80d64a3e4 /embed/mozilla/MozRegisterComponents.cpp
parent2029610e09684f3dec57d3b00af6084f97699fe2 (diff)
downloadgsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar.gz
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar.bz2
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar.lz
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar.xz
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.tar.zst
gsoc2013-epiphany-c951555722d4933277a1d468c6508f5ad34711b1.zip
Add protocol handler, which I'll use for our custom error pages. Since
2005-05-26 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyProtocolHandler.cpp: * embed/mozilla/EphyProtocolHandler.h: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozRegisterComponents.cpp: Add protocol handler, which I'll use for our custom error pages. Since it's almost gratis, add about:epiphany back.
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index d6f83da95..f52226616 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -42,6 +42,10 @@
#include <nsISecureBrowserUI.h>
#endif
+#ifdef HAVE_GECKO_1_8
+#include "EphyProtocolHandler.h"
+#endif
+
#include <nsMemory.h>
#include <nsDocShellCID.h>
#include <nsIGenericFactory.h>
@@ -71,6 +75,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSKeyPairDialogs)
NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSSecurityWarningDialogs)
#endif
+#ifdef HAVE_GECKO_1_8
+NS_GENERIC_FACTORY_CONSTRUCTOR(EphyProtocolHandler)
+#endif
+
/* class information */
NS_DECL_CLASSINFO(EphySidebar)
@@ -197,6 +205,20 @@ static const nsModuleComponentInfo sAppComps[] = {
&NS_CLASSINFO_NAME(EphySidebar),
nsIClassInfo::DOM_OBJECT
},
+#ifdef HAVE_GECKO_1_8
+{
+ EPHY_ABOUT_CLASSNAME,
+ EPHY_PROTOCOL_HANDLER_CID,
+ EPHY_ABOUT_CONTRACTID,
+ EphyProtocolHandlerConstructor
+},
+{
+ EPHY_PROTOCOL_HANDLER_CLASSNAME,
+ EPHY_PROTOCOL_HANDLER_CID,
+ EPHY_PROTOCOL_HANDLER_CONTRACTID,
+ EphyProtocolHandlerConstructor
+},
+#endif
};
#if defined(HAVE_MOZILLA_PSM) && !defined(HAVE_GECKO_1_8)