aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-06-13 04:25:09 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-06-13 04:25:09 +0800
commitb59ab61dde301128d88778045f502cc30008bf8f (patch)
tree57dd181d409b16ca5abe7d2bddac9c3c54219e95 /embed/mozilla/EphyBrowser.cpp
parentdecb30ea6768b634476d351f3d5f5e73e4308326 (diff)
downloadgsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.gz
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.bz2
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.lz
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.xz
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.tar.zst
gsoc2013-epiphany-b59ab61dde301128d88778045f502cc30008bf8f.zip
Add a way to open new windows passing features and uri. Something like js
2004-06-12 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_open_window): * embed/ephy-embed-single.h: * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/mozilla-embed-single.cpp: Add a way to open new windows passing features and uri. Something like js window.open. It's necessary for popup blocker.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 066532790..2ca36a9bb 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -548,6 +548,15 @@ nsresult EphyBrowser::GetPageDescriptor(nsISupports **aPageDescriptor)
return NS_OK;
}
+nsresult EphyBrowser::GetDOMWindow (nsIDOMWindow **aDOMWindow)
+{
+ NS_ENSURE_TRUE (mWebBrowser, NS_ERROR_FAILURE);
+
+ NS_IF_ADDREF (*aDOMWindow = mDOMWindow);
+
+ return NS_OK;
+}
+
nsresult EphyBrowser::GetDocumentUrl (nsACString &url)
{
nsresult rv;