From d96e9fde4aa181fb9d5923179b5d5865dd741d53 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 17 Apr 2004 17:12:33 +0000 Subject: Do not uncompress when the type is not html. 2004-04-17 Marco Pesenti Gritti * embed/mozilla/MozDownload.cpp: Do not uncompress when the type is not html. --- ChangeLog | 6 ++++++ embed/mozilla/MozDownload.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index edc77e836..74697ae90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-04-17 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Do not uncompress when the type is not html. + 2004-04-17 Marco Pesenti Gritti * lib/egg/Makefile.am: 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; -- cgit v1.2.3