Closed Bug 83241 Opened 24 years ago Closed 24 years ago

file:// needs decoder to sniff file types

Categories

(Core :: Networking: File, defect, P2)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: mscott, Assigned: mscott)

References

Details

(Keywords: testcase, Whiteboard: [PDT+]Have fix sr=rpotts)

Attachments

(1 file)

Currently if you attempt to load an image in a file that doesn't have an extension, 6.x throws the unknown content handler. i.e. if I have a .jpg in a local file called "test". We won't display the image. If the file looks like "test.jpg" we do show the image. Both 4.x and IE properly render the image when the file is called "test". I believe our unknown decoder should be smart enough to not only sniff for content types like html but to also sniff for some basic image content types.
setting up for .9.2. The change should be pretty straightforward. This bug came from some guys at Sun where this is becoming a corporate escalation for them.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.2
sr=rpotts Looks good to me...
Blocks: 83989
Whiteboard: Have fix sr=rpotts
adding PDT+. Please check into the trunk as soon as possible.
Whiteboard: Have fix sr=rpotts → [PDT+]Have fix sr=rpotts
Ian: what is the w3c's current position on content sniffing?
Is this over HTTP? Over HTTP, if there is a Content-Type, then we should never ever sniff. If this is over file:// then I guess we can do what we like. The W3C position, last time I heard, is that sniffing is evil, very evil.
if we got here then there wasn't a content type. This is primarily intended for local files. I believe this is a desired behavior for images in this scenario.
Priority: -- → P2
-> file, +qa clarified summary.
Component: Networking → Networking: File
QA Contact: benc → tever
Summary: Unknown decoder should be smart enough to sniff for common image types... → file:// needs decoder to sniff file types
a=blizzard on behalf of drivers for the tip
fix checked in. To test, try opening some image local files that don't have extensions. instead of "test.jpg, test2.gif", rename the files to just be "test" and "test2".
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified - 071801 builds, all platforms
Status: RESOLVED → VERIFIED
Keywords: testcase
This sounds like it affects more than just local files, but also ftp:// files and headerless (HTTP 0.9) files w/ extensions?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: