aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
authorAdam Hooper <adamh@src.gnome.org>2004-06-21 19:09:56 +0800
committerAdam Hooper <adamh@src.gnome.org>2004-06-21 19:09:56 +0800
commit234742d9a6c75c8163a47bd1f3b1eeeba15e58cc (patch)
tree8901df253d7052f7d0b157f8dcd38c33a927ddfb /embed/mozilla/mozilla-embed-single.cpp
parent848ded5f81fc73bafd62c6cbf1e2b9b9814e7263 (diff)
downloadgsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar.gz
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar.bz2
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar.lz
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar.xz
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.tar.zst
gsoc2013-epiphany-234742d9a6c75c8163a47bd1f3b1eeeba15e58cc.zip
Implement popup-blocking signals. Part of bug #111930.
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index bf74c9305..6513c8095 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -840,13 +840,15 @@ impl_permission_manager_list (EphyPermissionManager *manager,
return list;
}
-void
-mozilla_embed_single_open_window (EphyEmbedSingle *single,
- EphyEmbed *parent,
- const char *address,
- const char *features)
+static void
+impl_open_window (EphyEmbedSingle *single,
+ EphyEmbed *parent,
+ const char *address,
+ const char *features)
{
nsCOMPtr<nsIDOMWindow> domWindow;
+ nsCOMPtr<nsIDOMWindow> dummy;
+
if (parent)
{
EphyBrowser *browser;
@@ -858,7 +860,8 @@ mozilla_embed_single_open_window (EphyEmbedSingle *single,
}
nsCOMPtr<nsIWindowWatcher> wWatch(do_GetService ("@mozilla.org/embedcomp/window-watcher;1"));
- wWatch->OpenWindow (domWindow, address, "", features, nsnull, nsnull);
+ wWatch->OpenWindow (domWindow, address, "", features, nsnull,
+ getter_AddRefs (dummy));
}
static void
@@ -881,6 +884,7 @@ ephy_embed_single_iface_init (EphyEmbedSingleIface *iface)
iface->set_offline_mode = impl_set_offline_mode;
iface->load_proxy_autoconf = impl_load_proxy_autoconf;
iface->get_font_list = impl_get_font_list;
+ iface->open_window = impl_open_window;
}
static void