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

Description Peter Gal 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.
Comment 1 Peter Gal 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
Comment 2 Peter Gal 2013-06-04 07:00:37 PDT
Created attachment 203692 [details]
proposed patch
Comment 3 Brent Fulgham 2013-06-05 14:28:05 PDT
Comment on attachment 203692 [details]
proposed patch

r=me
Comment 4 Peter Gal 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?
Comment 5 WebKit Commit Bot 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>
Comment 6 WebKit Commit Bot 2013-06-05 21:18:04 PDT
All reviewed patches have been landed.  Closing bug.