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. --- embed/mozilla/MozDownload.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'embed/mozilla') 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