aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-07 02:16:43 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-07 02:16:43 +0800
commita6fbb67bc18d33fb73337c88b9e1ab05ad9a5893 (patch)
tree22b5680a9b3e11231b28e1df4dd2144299c7dc6a /embed/mozilla
parenta6dfa12b0587d65d8015fbaef94fce453db10148 (diff)
downloadgsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar.gz
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar.bz2
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar.lz
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar.xz
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.tar.zst
gsoc2013-epiphany-a6fbb67bc18d33fb73337c88b9e1ab05ad9a5893.zip
Set MozDownload as progress listener on the web browser persist.
2005-05-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Set MozDownload as progress listener on the web browser persist.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/MozDownload.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index d2610b941..7ad66d274 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -638,6 +638,9 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI
#ifdef HAVE_GECKO_1_8
rv = downloader->InitForEmbed (inOriginalURI, destURI, fileDisplayName,
nsnull, timeNow, webPersist, embedPersist, aMaxSize);
+ NS_ENSURE_SUCCESS (rv, rv);
+
+ rv = webPersist->SetProgressListener (downloader);
#else
rv = downloader->InitForEmbed (inOriginalURI, destURI, fileDisplayName.get(),
nsnull, timeNow, webPersist, embedPersist, aMaxSize);