<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15755</bug_id>
          
          <creation_ts>2007-10-29 13:36:09 -0700</creation_ts>
          <short_desc>HTML5: WebKit should accept all image/* MIME types and use content sniffing to determine the actual type</short_desc>
          <delta_ts>2026-01-08 07:56:53 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ian</cc>
    
    <cc>jmalonzo</cc>
    
    <cc>karlcow</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59809</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-10-29 13:36:09 -0700</bug_when>
    <thetext>Per Hixie&apos;s comment in Bug 15640 Comment #9:

&gt; I don&apos;t have any data, but, HTML5 suggests treating all image/* types as
&gt; equivalent and using magic bytes to distinguish them.

I&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170290</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-01-08 07:56:53 -0800</bug_when>
    <thetext>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&apos;m leaving the comment because I just fixed a bug for the uploading of image with input elements Bug 303803</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>