Closed
Bug 83429
Opened 23 years ago
Closed 23 years ago
nsIWebBrowserPersist - saving a .txt file will save in html
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: alan, Assigned: adamlock)
Details
This bug cropped up in galeon. Full text from the original bug at http://bugzilla.gnome.org/show_bug.cgi?id=55459 below: ------------------ Basically what happens is that galeon will save a .txt file with html/pre wrappers, even if it is not an html file with that code in it. It looks like it's using the internal renderer structure and dumping it to file, instead of using the original (??). To reproduce: Go to the URL http://www.muppetlabs.com/~breadbox/software/tiny/hello.asm.txt File->save as Edit the file and notice the top line containing <html><head>, etc. Repeat with the latest mozilla nightly and notice that it saves text properly. Definately mozilla has the desired results, as people such as myself are downloading non-html files off the net and having those files contents change is a bad thing. Netscape 4.x deals with this by having a "save as type" dropdown that has the following choices for this file: source/text/postscript, and translates the source to whatever format the user chooses on the way to the disk. --------- Marco said it was a mozilla bug and that "we are using nsIWebBrowserPersist"
Comment 1•23 years ago
|
||
which mozilla version are you using (ie which one galeon embedds)? Not seeing this on windows, will try linux later.
I'm using the patched .9 debs available at ftp://ufies.org/pub/galeon/people/christophe
embedding?
Assignee: asa → adamlock
Component: Browser-General → Embedding: Docshell
QA Contact: doronr → adamlock
What method are you using to save the document with? If saveDocument then try saveURI.
This looks like it was a problem in galeon, we now use SaveURI and it works as expected, marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•