Closed
Bug 247509
Opened 22 years ago
Closed 5 years ago
Control characters should not cause "What should Firefox do with this file" to pop up for text/plain
Categories
(Firefox :: File Handling, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: timwi, Unassigned)
Details
(Keywords: helpwanted)
Attachments
(1 file)
|
5 bytes,
text/plain
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040614 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040614 Firefox/0.8
Please see the following attachment. It is text/plain, so Mozilla/Firefox should
display it in the window. However, it pops up the message "what should I do with
this file?" only because it contains a 0x1f character. I don't think this is
supposed to happen.
Reproducible: Always
Steps to Reproduce:
Actual Results:
"What should I do with this file?"
Expected Results:
Display the file :)
Damn it ... the attachment doesn't trigger the bug (not for me at least).
This, however, does: http://lionking.org/~timwi/t/bugzilla-247509-testcase.txt
Updated•22 years ago
|
Assignee: bugs → file-handling
Product: Firefox → Browser
QA Contact: bmo → ian
Version: unspecified → Trunk
Comment 3•22 years ago
|
||
This behavior is intentional. See bug 220807.
Comment 4•22 years ago
|
||
well, it is supposed to happen... that was the entire point of bug 220807's
patch. so this is probably invalid.
bugzilla sends:
7 Content-Type: text/plain; name="temp.txt"
since this is not just text/plain, or text/plain; charset=ISO-8859-1, mozilla
does not run its content-sniffing code.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
I was afraid you would say that.
But, personally, I think if you allow something like
Content-Type: text/plain; name="temp.txt"
to pass the text, then you should also allow URLs ending in ".txt".
Comment 6•22 years ago
|
||
> Content-Type: text/plain; name="temp.txt"
that one means that the test isn't even done, but I get your point...
hmm... special-casing .txt... that may be worth doing, actually...
bz, what do you think? it's probably safe to say that a .txt file is meant to be
a text file, and since this code is doing lots of special-casing anyway, this is
probably not too bad
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 7•22 years ago
|
||
Oh god, not more special casing. Stop the madness...
Comment 8•22 years ago
|
||
Hmm... yeah, I'd prefer that we didn't detect "obvious" plaintext extensions as
binary. This may be most easily solved in the sniffer itself, not in uriloader.
Comment 9•21 years ago
|
||
This is an automated message, with ID "auto-resolve01".
This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.
While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.
If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.
The latest beta releases can be obtained from:
Firefox: http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey: http://www.mozilla.org/projects/seamonkey/
Comment 10•21 years ago
|
||
still exists as described, I would prefer it be fixed rather than auto-closed
Comment 11•21 years ago
|
||
I'm going to confirm this, but I have no time to write up a behavior spec and
such; if someone does that, I could try implementing it.
Updated•17 years ago
|
Assignee: file-handling → nobody
QA Contact: ian → file-handling
Updated•10 years ago
|
Product: Core → Firefox
Version: Trunk → unspecified
Comment 12•5 years ago
|
||
Marking this as Resolved > Incomplete since the last activity on this issue was many years ago and it might not be relevant anymore. Feel free to re-open if the issue is still reproducible on your end in the latest FF versions.
Status: NEW → RESOLVED
Closed: 22 years ago → 5 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•