aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2007-01-29 04:24:03 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2007-01-29 04:24:03 +0800
commit4add89491510082e2e5c2d9d56c1952d76f5629b (patch)
tree6367f8bc80496218931a4cbd406fea03fb280351 /embed
parent819a719f62d6d9583d55b1c5ac787c7f64a03de6 (diff)
downloadgsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar.gz
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar.bz2
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar.lz
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar.xz
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.tar.zst
gsoc2013-epiphany-4add89491510082e2e5c2d9d56c1952d76f5629b.zip
Check for a potential veto. Fix #342951.
2007-01-28 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: (GContentHandler::Show): Check for a potential veto. Fix #342951. svn path=/trunk/; revision=6858
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/ContentHandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index 7815b5da8..dd190f0c0 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -93,6 +93,18 @@ GContentHandler::Show (nsIHelperAppLauncher *aLauncher,
/* FIXME: handle aForced / aReason argument in some way? */
mContext = aContext;
+
+ /* Check for a potential veto */
+ nsCOMPtr<nsIDOMWindow> window (do_GetInterface (aContext));
+ GtkWidget *embed = EphyUtils::FindEmbed (window);
+ if (EPHY_IS_EMBED (embed))
+ {
+ if (g_object_get_data (G_OBJECT (embed), "content-handler-deny"))
+ {
+ return NS_OK;
+ }
+ }
+
mLauncher = aLauncher;
rv = Init ();
NS_ENSURE_SUCCESS (rv, rv);