Bug 117194 - [curl] Normalize mime type information
Summary: [curl] Normalize mime type information
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 117300
  Show dependency treegraph
 
Reported: 2013-06-04 06:44 PDT by Peter Gal
Modified: 2013-06-13 06:59 PDT (History)
2 users (show)

See Also:


Attachments
proposed patch (1.28 KB, patch)
2013-06-04 07:00 PDT, Peter Gal
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.