Add "View as Text/HTML/..." option for unknown mime content-type
Categories
(Firefox :: File Handling, enhancement, P3)
Tracking
()
People
(Reporter: pohl.longsine, Unassigned)
References
(Depends on 1 open bug, Blocks 5 open bugs, )
Details
(Keywords: arch, parity-opera)
Attachments
(7 files, 5 obsolete files)
31.08 KB,
patch
|
Details | Diff | Splinter Review | |
4.32 KB,
text/plain
|
Details | |
4.23 KB,
patch
|
Details | Diff | Splinter Review | |
3.55 KB,
patch
|
Details | Diff | Splinter Review | |
36.93 KB,
patch
|
Details | Diff | Splinter Review | |
12.46 KB,
patch
|
Details | Diff | Splinter Review | |
14.33 KB,
image/png
|
Details |
Comment 1•25 years ago
|
||
Updated•25 years ago
|
Comment 2•25 years ago
|
||
Comment 5•25 years ago
|
||
Comment 6•25 years ago
|
||
Comment 9•25 years ago
|
||
Comment 10•24 years ago
|
||
Updated•24 years ago
|
Comment 11•24 years ago
|
||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
Comment 14•24 years ago
|
||
![]() |
||
Comment 15•24 years ago
|
||
Comment 16•24 years ago
|
||
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
![]() |
||
Comment 19•24 years ago
|
||
![]() |
||
Comment 20•24 years ago
|
||
Comment 21•24 years ago
|
||
Comment 22•24 years ago
|
||
Comment 23•24 years ago
|
||
Comment 24•24 years ago
|
||
Comment 25•24 years ago
|
||
Comment 26•24 years ago
|
||
Comment 27•23 years ago
|
||
Comment 28•23 years ago
|
||
Comment 29•23 years ago
|
||
![]() |
||
Comment 30•23 years ago
|
||
![]() |
||
Comment 31•23 years ago
|
||
Comment 32•23 years ago
|
||
Comment 33•23 years ago
|
||
Updated•23 years ago
|
Comment 34•23 years ago
|
||
Comment 35•23 years ago
|
||
Comment 36•23 years ago
|
||
![]() |
||
Comment 37•23 years ago
|
||
Comment 38•23 years ago
|
||
Comment 39•23 years ago
|
||
Comment 40•23 years ago
|
||
Reporter | ||
Comment 41•23 years ago
|
||
Comment 42•23 years ago
|
||
Comment 43•23 years ago
|
||
Comment 44•23 years ago
|
||
Comment 45•23 years ago
|
||
Comment 46•23 years ago
|
||
Comment 47•23 years ago
|
||
![]() |
||
Comment 48•23 years ago
|
||
Comment 49•23 years ago
|
||
![]() |
||
Comment 50•23 years ago
|
||
Updated•23 years ago
|
![]() |
||
Comment 51•22 years ago
|
||
Comment 52•22 years ago
|
||
![]() |
||
Comment 53•22 years ago
|
||
Comment 54•22 years ago
|
||
Comment 55•22 years ago
|
||
![]() |
||
Comment 56•22 years ago
|
||
Comment 57•22 years ago
|
||
Comment 58•22 years ago
|
||
Comment 59•22 years ago
|
||
Comment 60•22 years ago
|
||
Comment 61•22 years ago
|
||
Comment 62•22 years ago
|
||
Updated•22 years ago
|
![]() |
||
Comment 63•22 years ago
|
||
Comment 64•22 years ago
|
||
Updated•22 years ago
|
Updated•22 years ago
|
Comment 65•22 years ago
|
||
Comment 66•22 years ago
|
||
![]() |
||
Comment 67•22 years ago
|
||
Updated•22 years ago
|
Comment 68•22 years ago
|
||
![]() |
||
Comment 69•22 years ago
|
||
![]() |
||
Comment 70•21 years ago
|
||
Comment 71•21 years ago
|
||
![]() |
||
Comment 72•21 years ago
|
||
Updated•21 years ago
|
Comment 73•21 years ago
|
||
Comment 74•21 years ago
|
||
Comment 75•21 years ago
|
||
Comment 76•21 years ago
|
||
Comment 77•21 years ago
|
||
Comment 78•21 years ago
|
||
Comment 79•21 years ago
|
||
Comment 80•21 years ago
|
||
Comment 81•21 years ago
|
||
Comment 82•21 years ago
|
||
Updated•21 years ago
|
Comment 83•21 years ago
|
||
Comment 84•21 years ago
|
||
Comment 85•21 years ago
|
||
Comment 86•21 years ago
|
||
Comment 87•21 years ago
|
||
Comment 88•21 years ago
|
||
Comment 89•21 years ago
|
||
Comment 90•21 years ago
|
||
Comment 91•21 years ago
|
||
Comment 92•21 years ago
|
||
Comment 93•21 years ago
|
||
Comment 94•21 years ago
|
||
Comment 95•21 years ago
|
||
Comment 96•21 years ago
|
||
Comment 97•21 years ago
|
||
Comment 98•21 years ago
|
||
Comment 99•21 years ago
|
||
Comment 100•21 years ago
|
||
Comment 101•21 years ago
|
||
Comment 102•21 years ago
|
||
Comment 103•21 years ago
|
||
Comment 104•21 years ago
|
||
Comment 105•21 years ago
|
||
Comment 106•21 years ago
|
||
Comment 107•21 years ago
|
||
Comment 108•21 years ago
|
||
Comment 109•21 years ago
|
||
Comment 110•21 years ago
|
||
Comment 111•21 years ago
|
||
Comment 112•21 years ago
|
||
Comment 113•21 years ago
|
||
Comment 114•21 years ago
|
||
Comment 115•21 years ago
|
||
Comment 116•21 years ago
|
||
![]() |
||
Comment 117•21 years ago
|
||
Comment 118•21 years ago
|
||
Comment 119•21 years ago
|
||
Updated•21 years ago
|
Comment 120•21 years ago
|
||
![]() |
||
Comment 121•21 years ago
|
||
![]() |
||
Updated•21 years ago
|
Comment 122•21 years ago
|
||
![]() |
||
Comment 123•21 years ago
|
||
Comment 124•21 years ago
|
||
![]() |
||
Comment 125•21 years ago
|
||
Updated•20 years ago
|
Comment 126•20 years ago
|
||
Comment 127•20 years ago
|
||
Updated•20 years ago
|
![]() |
||
Comment 128•20 years ago
|
||
Comment 129•20 years ago
|
||
Updated•20 years ago
|
Comment 130•20 years ago
|
||
Comment 131•20 years ago
|
||
Comment 132•20 years ago
|
||
Comment 133•20 years ago
|
||
Comment 134•20 years ago
|
||
Comment 135•20 years ago
|
||
Comment 136•20 years ago
|
||
Comment 137•20 years ago
|
||
Comment 138•20 years ago
|
||
Comment 139•20 years ago
|
||
Comment 140•20 years ago
|
||
Comment 141•20 years ago
|
||
Comment 142•20 years ago
|
||
Comment 143•20 years ago
|
||
Comment 144•20 years ago
|
||
Comment 145•20 years ago
|
||
Comment 146•20 years ago
|
||
Comment 147•20 years ago
|
||
Comment 148•20 years ago
|
||
Comment 149•20 years ago
|
||
Comment 150•20 years ago
|
||
Comment 151•20 years ago
|
||
Comment 152•20 years ago
|
||
Comment 153•20 years ago
|
||
Comment 154•20 years ago
|
||
Comment 155•20 years ago
|
||
Comment 156•20 years ago
|
||
Comment 157•20 years ago
|
||
Comment 158•20 years ago
|
||
Comment 159•19 years ago
|
||
Comment 160•19 years ago
|
||
Comment 161•19 years ago
|
||
Comment 162•19 years ago
|
||
Comment 163•19 years ago
|
||
Comment 164•19 years ago
|
||
Comment 165•19 years ago
|
||
Comment 166•19 years ago
|
||
Comment 167•19 years ago
|
||
Comment 168•19 years ago
|
||
Comment 169•19 years ago
|
||
Comment 170•19 years ago
|
||
Comment 171•19 years ago
|
||
Comment 172•19 years ago
|
||
Comment 173•19 years ago
|
||
Comment 174•19 years ago
|
||
Comment 175•19 years ago
|
||
Comment 176•19 years ago
|
||
Comment 178•18 years ago
|
||
Comment 179•18 years ago
|
||
![]() |
||
Comment 180•17 years ago
|
||
Comment 181•17 years ago
|
||
Comment 182•17 years ago
|
||
Comment 183•16 years ago
|
||
Comment 184•16 years ago
|
||
Comment 185•16 years ago
|
||
Comment 186•16 years ago
|
||
Comment 187•16 years ago
|
||
Comment 188•16 years ago
|
||
Updated•16 years ago
|
Comment 189•16 years ago
|
||
Comment 190•16 years ago
|
||
Comment 191•16 years ago
|
||
Comment 192•16 years ago
|
||
Comment 193•16 years ago
|
||
Comment 194•16 years ago
|
||
Comment 195•16 years ago
|
||
Comment 196•16 years ago
|
||
Comment 198•16 years ago
|
||
Comment 199•16 years ago
|
||
Comment 200•16 years ago
|
||
Comment 201•16 years ago
|
||
Comment 202•16 years ago
|
||
Comment 203•16 years ago
|
||
Comment 204•16 years ago
|
||
Comment 205•14 years ago
|
||
Comment 206•14 years ago
|
||
Comment 207•13 years ago
|
||
Comment 208•12 years ago
|
||
Comment 209•12 years ago
|
||
Comment 210•12 years ago
|
||
Comment 211•12 years ago
|
||
Comment 212•11 years ago
|
||
Comment 213•11 years ago
|
||
Comment 214•11 years ago
|
||
Updated•9 years ago
|
![]() |
||
Comment 216•7 years ago
|
||
Updated•7 years ago
|
Comment 217•6 years ago
|
||
Addressing this issue would help a lot of power users. I think all that's needed is the capability to set somewhere (even about:config) that all unknown text/* types should be handled as internally as text/plain.
Currently I have to use Chrome w/ an extension to render a markdown file from my local filesystem. It is loaded w/ the appropriate mime type: text/markdown which according to this stackoverflow (https://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown) was registered as RFC7763 in March of 2016.
There is at least one firefox extension which will render a markdown file. but it never gets that far, firefox only gives the options to download or to specify an external application for the file.
There are other text/* types that it would be really nice if they were just viewable in the browser rendered as text/plain, such as those for source files (text/x-c, text/x-java-source, ...). On my system the mime type is also associated w/ the list of applications I select from in the file manager to open those files, so I want to be able to distinguish them from one another (I want to open markdown files with different applications than js source files or script files for example). I mention this because one workaround suggested was just to tag markdown files as text/plain, but I'd rather continue to use Chrome than lose the ability to distinguish the files in the file manager.
Comment 218•6 years ago
|
||
(In reply to Michael Lippert from comment #217)
Addressing this issue would help a lot of power users. I think all that's needed is the capability to set somewhere (even about:config) that all unknown text/* types should be handled as internally as text/plain.
I disagree. It's only natural that sometimes the user will want to save the file to disk, sometimes the user will want to open the file in an external application, and sometimes the user will want to view the file in the browser. Why should we force the user to choose on an all-or-nothing basis, and moreover restrict it to text/* types?
There are other text/* types that it would be really nice if they were just viewable in the browser rendered as text/plain, such as those for source files (text/x-c, text/x-java-source, ...).
Indeed, Moreover, there are many text-based file formats out there - not just those that have text/* MIME types (e.g. application/xml, and apparently application/javascript and application/json exist as well).
On my system the mime type is also associated w/ the list of applications I select from in the file manager to open those files, so I want to be able to distinguish them from one another (I want to open markdown files with different applications than js source files or script files for example). I mention this because one workaround suggested was just to tag markdown files as text/plain, but I'd rather continue to use Chrome than lose the ability to distinguish the files in the file manager.
What kind of "system" is this - an operating system, or a website with an associated file manager?
The MIME type is for specifying what kind of file it is, not what the user agent is to do with it. We shouldn't force anybody to misdeclare MIME types in order to work around browser restrictions. We should fix the restrictions.
Comment 219•6 years ago
|
||
(In reply to Stewart Gordon from comment #218)
I think you completely misunderstood what I was getting at, because your final statement is what I was saying (well attempting to as it obviously wasn't as clear as I hoped).
All I was saying is that if a file is identified with a mime type of text/*
that it is text, and firefox displays text just fine as it currently does with text/plain
. So firefox can handle any text file it doesn't explicitly have another process for as text/plain
to display it in Firefox, and that should be an option in addition to save, and specifying an external application for handling that file.
I was not requesting that the user choose on an all-or-nothing basis at all, I wanted to add an option that doesn't exist at this time, but should for text/* types because the support is already baked in.
Comment 220•6 years ago
|
||
Just a restate for my comment #57 from 16 years ago with a slight update... it is still valid
If I try to download a text/almost-binary-whatever (such as /etc/sendmail.cf), I expect a dialog asking
what to do:
You are trying to view text/almost-binary-whatever content...
( ) Save to disk...
( ) Show in browser as text/plain
( ) Open with program...
[x] Always do the same for this type
[OK] [Cancel]
Just my 2 EUR cent...
Comment 221•6 years ago
|
||
(In reply to Michael Lippert from comment #219)
(In reply to Stewart Gordon from comment #218)
I think you completely misunderstood what I was getting at, because your final statement is what I was saying (well attempting to as it obviously wasn't as clear as I hoped).
That final comment wasn't aimed at you personally. Sorry if it sounded like it was. Really, I was commenting on the suggested workaround you made reference to, rather than on your comment itself.
All I was saying is that if a file is identified with a mime type of
text/*
that it is text, and firefox displays text just fine as it currently does withtext/plain
. So firefox can handle any text file it doesn't explicitly have another process for astext/plain
to display it in Firefox, and that should be an option in addition to save, and specifying an external application for handling that file.I was not requesting that the user choose on an all-or-nothing basis at all, I wanted to add an option that doesn't exist at this time, but should for text/* types because the support is already baked in.
Which is basically what this bug ticket is asking for all along. I was saying that it shouldn't be restricted to text/* types, because other types may also be text-based formats. Another very good example of this is PGN (which seems to be represented by various application/* types).
Comment 222•5 years ago
|
||
Backlog grooming: bugs without an assignee cannot be P1.
Comment 223•4 years ago
|
||
In December 2000, just shy of 21 years ago, comment number 6:
"Marking as NEW so someone will either mark it as WONTFIX or INVALID."
Status today, 25 Aug 2021 (30th birthday of Linus announcing his OS in Usenet):
"Status: NEW"
And I see multiple patches attached to this ticket from various points over the years. This is so disheartening.
Comment 224•4 years ago
|
||
Encountered this bug today trying to get a plaintext format (with the mime type application/<something>
) to display as plaintext in the browser rather than Open With > Firefox (and opening a new window.)
Is there still no workaround for enabling this type of functionality, even by modifying config files in the profile? I tried messing around with handlers.json
(the file that holds the mime type preferences set in about:preferences
under the "Files and Applications" header) but had no luck.
Some content types in about:preferences
permit users to select "Open in Firefox" while others don't. Where is the safelist of permitted content types for this behavior? Could a simple solution to this bug be to add an about:config
flag that would allow power users to select "Open in Firefox" for any content type?
Updated•3 years ago
|
Description
•