Bug 117194

Summary: [curl] Normalize mime type information
Product: WebKit Reporter: Peter Gal <galpeter>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 117300    
Attachments:
Description Flags
proposed patch none

Peter Gal
Reported 2013-06-04 06:44:32 PDT
If the webserver returns an incorrect mime type (like: image/jpg) then WebKit can not display it correctly (will not decode the image). On other network backends this mime type informations is already normalized either by using some kind of sniffing or providing a mapping to a correct mime type.
Attachments
proposed patch (1.28 KB, patch)
2013-06-04 07:00 PDT, Peter Gal
no flags
Peter Gal
Comment 1 2013-06-04 07:00:13 PDT
for example opening this jpg would not show the image: http://hidefwalls.com/wp-content/g/hd-2/1600x1200_hd_wallpaper_177.jpg
Peter Gal
Comment 2 2013-06-04 07:00:37 PDT
Created attachment 203692 [details] proposed patch
Brent Fulgham
Comment 3 2013-06-05 14:28:05 PDT
Comment on attachment 203692 [details] proposed patch r=me
Peter Gal
Comment 4 2013-06-05 15:07:37 PDT
(In reply to comment #3) > (From update of attachment 203692 [details]) > r=me Could you also do a cq+ for this patch? or is there a reason against it?
WebKit Commit Bot
Comment 5 2013-06-05 21:18:03 PDT
Comment on attachment 203692 [details] proposed patch Clearing flags on attachment: 203692 Committed r151254: <http://trac.webkit.org/changeset/151254>
WebKit Commit Bot
Comment 6 2013-06-05 21:18:04 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.