aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-04-18 01:12:33 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-04-18 01:12:33 +0800
commitd96e9fde4aa181fb9d5923179b5d5865dd741d53 (patch)
tree894418dbdbcc1b05bcae1127054a5f32d30e104f /embed/mozilla/MozDownload.cpp
parent3f3f9f565605efc892e0b544dc5739a20cb8cea4 (diff)
downloadgsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar.gz
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar.bz2
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar.lz
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar.xz
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.tar.zst
gsoc2013-epiphany-d96e9fde4aa181fb9d5923179b5d5865dd741d53.zip
Do not uncompress when the type is not html.
2004-04-17 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Do not uncompress when the type is not html.
Diffstat (limited to 'embed/mozilla/MozDownload.cpp')
-rw-r--r--embed/mozilla/MozDownload.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index c17c9d436..5971dee86 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -485,6 +485,11 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI
NS_ENSURE_SUCCESS (rv, rv);
PRInt32 flags = nsIWebBrowserPersist::PERSIST_FLAGS_REPLACE_EXISTING_FILES;
+
+ if (!isHTML)
+ {
+ flags |= nsIWebBrowserPersist::PERSIST_NO_CONVERSION;
+ }
if (ephy_flags & EMBED_PERSIST_COPY_PAGE)
{
flags |= nsIWebBrowserPersist::PERSIST_FLAGS_FROM_CACHE;