tags 296473 + fixed-upstream patch upstream retitle 296473 image saving -- [1.3.20] thanks
Hi, On Tue, Feb 22, 2005, Daniel Hottinger wrote: > Open an image directly (so that the URL of the image is in the > location bar). Then choose ``File -> Save As...''. Galeon writes > the following HTML to the image file instead of the binary data: The bug you reported has been fixed in the upstream source, the fix will be available with the next release of Galeon. I attach a patch which should fix the issue, which apply (with an offset) in version 1.3.19. Regards, -- Loïc Minier <[EMAIL PROTECTED]> "Neutral President: I have no strong feelings one way or the other."
--- orig/mozilla/mozilla-embed-persist.cpp +++ mod/mozilla/mozilla-embed-persist.cpp @@ -164,9 +164,9 @@ impl_save (GaleonEmbedPersist *persist) doc->GetContentType (contentType); } - if (contentType.Equals (NS_LITERAL_STRING ("text/html")) && - contentType.Equals (NS_LITERAL_STRING ("text/xml")) && - contentType.Equals (NS_LITERAL_STRING ("application/xhtml+xml"))) + if (!contentType.Equals (NS_LITERAL_STRING ("text/html")) && + !contentType.Equals (NS_LITERAL_STRING ("text/xml")) && + !contentType.Equals (NS_LITERAL_STRING ("application/xhtml+xml"))) { DOMDocument = nsnull; }