Closed Bug 66322 Opened 24 years ago Closed 23 years ago

ImageNetContextSyncImpl contenttype check will fail

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gagan, Assigned: pavlov)

References

Details

We are quite unnecessarily checking the content-type before doing any operation
on the channel around these lines of code. 

http://lxr.mozilla.org/seamonkey/source/gfx/src/nsImageNetContextSync.cpp#210

If the intent is to only guess the mime type then we should just check the file
extension.
Check this link for a better way to guess mime types--

http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/ftp/src/nsFTPChannel.cpp#366

Depends on: 70938
This code is no longer used.  This bug has been fixed by the new image library.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.