diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-04-17 Marco Pesenti Gritti <marco@gnome.org> + * embed/mozilla/MozDownload.cpp: + + Do not uncompress when the type is not html. + +2004-04-17 Marco Pesenti Gritti <marco@gnome.org> + * lib/egg/Makefile.am: * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): * lib/egg/egg-toolbar-editor.c: (set_drag_cursor): 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; |