aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-11-27 02:43:05 +0800
committerChristian Persch <chpe@src.gnome.org>2003-11-27 02:43:05 +0800
commit91166cf4b149a3c5fbaba16529788420954d4fab (patch)
tree083834cca3274d3b5a60eb181197b268da636a06 /embed/mozilla/MozRegisterComponents.cpp
parented7795be783b4f49314834b9c71813ce37f17280 (diff)
downloadgsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar.gz
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar.bz2
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar.lz
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar.xz
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.tar.zst
gsoc2013-epiphany-91166cf4b149a3c5fbaba16529788420954d4fab.zip
Implement disabling unsafe protocols for lock-down mode.
2003-11-26 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyContentPolicy.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozRegisterComponents.cpp: Implement disabling unsafe protocols for lock-down mode.
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index 1ddc46978..57010a22a 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2001,2002,2003 Philip Langdale
+ * Copyright (C) 2003 Marco Pesenti Gritti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,10 +15,12 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
#include "ContentHandler.h"
@@ -28,6 +31,7 @@
#include "MozDownload.h"
#include "ExternalProtocolService.h"
#include "EphyAboutRedirector.h"
+#include "EphyContentPolicy.h"
#ifdef HAVE_MOZILLA_PSM
#include "GtkNSSClientAuthDialogs.h"
@@ -53,6 +57,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GIRCProtocolHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR(GFtpProtocolHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR(GNewsProtocolHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR(GMailtoProtocolHandler)
+NS_GENERIC_FACTORY_CONSTRUCTOR(EphyContentPolicy)
#if MOZILLA_SNAPSHOT < 12
NS_GENERIC_FACTORY_CONSTRUCTOR(GExternalProtocolService)
@@ -194,6 +199,12 @@ static const nsModuleComponentInfo sAppComps[] = {
G_MAILTO_PROTOCOL_CID,
G_MAILTO_CONTENT_CONTRACTID,
GMailtoProtocolHandlerConstructor
+ },
+ {
+ EPHY_CONTENT_POLICY_CLASSNAME,
+ EPHY_CONTENT_POLICY_CID,
+ EPHY_CONTENT_POLICY_CONTRACTID,
+ EphyContentPolicyConstructor
}
};