Closed Bug 304566 Opened 19 years ago Closed 19 years ago

Attempting to open some plain text files tries to spawn less or some other program

Categories

(Toolkit :: Downloads API, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 258012

People

(Reporter: fasaxc, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050808 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050808 Firefox/1.0.6

Clicking smr.c on the page above opens the save/open in... box. The problem is I
*know* it's a text file and so just want to view it as text in the browser --
could this be added as a third option in the dialog? It,s really annoying on a
site like that (sometimes other sites fool the browser as well espec. if they
have a .exe extension but are in fact a CGI type executable -- i think thawte
used to have this problem)

Reproducible: Always
The .c files are sent as Content-Type "text/x-csrc" by the webserver.
My point is not that the file has been mislabled. "text/x-csrc" is the correct
mime-type AFAIK -- my problem is that I don't want to open another program to
view the file I want to open it in the browser. I'd like the option to overide
mozilla's decision that it's best to open an external viewer/save the file to disk.
Duplicate of bug 258012?
Agreed, sorry to waste people's time

*** This bug has been marked as a duplicate of 258012 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.