aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/MozDownload.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dcdc9f16..6d24a3a2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-05-06 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/MozDownload.cpp:
+
+ Set MozDownload as progress listener on the web browser persist.
+
+2005-05-06 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/mozilla-embed-persist.cpp:
Use nsICancelable.
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);