Bug 15755
| Summary: | HTML5: WebKit should accept all image/* MIME types and use content sniffing to determine the actual type | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | Images | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | abarth, ian, jmalonzo, karlcow |
| Priority: | P2 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
David Kilzer (:ddkilzer)
Per Hixie's comment in Bug 15640 Comment #9:
> I don't have any data, but, HTML5 suggests treating all image/* types as
> equivalent and using magic bytes to distinguish them.
I'm not sure if the machinery (CFNetwork, etc.) on OS X currently does this, or whether it uses the MIME type returned from the server combined with file extensions to determine the actual image type.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Karl Dubost
It seems to me this is now the case.
Currently it uses the mime type.
This needs tests to understand what is being asked exactly.
And look at the behavior of all browsers.
I'm leaving the comment because I just fixed a bug for the uploading of image with input elements Bug 303803