Closed Bug 112405 Opened 23 years ago Closed 9 years ago

[RFE] Option for user-specified content-type

Categories

(Core :: Networking: HTTP, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: christopher_brien, Unassigned)

Details

In bug 112361, someone asked for Mozilla to ignore content-type. However, this would imply that Mozilla should know better. For example an html file could be rendered as text/plain if the server said so. But not all servers are configured correctly. It could be impossible to view a page as HTML if the server says it is text/plain. Worse, an image that was for example image/jpeg, could be rendered as image/x-icon. The user would see a broken image, and not understand why. It would be nice if, after loading a file, the content-type could be set by the user. A text/plain file could be viewed as text/html, or an HTML file could be viewed as text/plain (this would be a better view-source implementation, killing bug 76816). Of course a correct implemetation would be dependent on bug 55583.
-> Networking:http (i vote for a wontfix)
Assignee: asa → darin
Component: Browser-General → Networking: HTTP
QA Contact: doronr → tever
> Worse, an image that was for example image/jpeg, could be rendered > as image/x-icon. No. Imagelib already looks at the image data itself to determine the image type. Apparently the number of servers that send anything resembling correct types for images is rather lower than one would wish... ccing rpotts... this would require a way to load something with an override mime type passed in that then gets set on the channel... echhh.
Status: UNCONFIRMED → NEW
Ever confirmed: true
-> future
Priority: -- → P5
Target Milestone: --- → Future
i'd love to be able to have a dropdown next to the urlbar which would let me see what the current live mime type is, and modify it to force something to happen.
-> default owner
Assignee: darin → nobody
QA Contact: tever → networking.http
Target Milestone: Future → ---
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.