<?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>102778</bug_id>
          
          <creation_ts>2012-11-20 00:06:02 -0800</creation_ts>
          <short_desc>should sniff it if mimetype don&apos;t contain slash</short_desc>
          <delta_ts>2012-12-02 19:31:24 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mary Wu">mawu</reporter>
          <assigned_to name="Mary Wu">mawu</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>luiz</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>staikos</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>771622</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-11-20 00:06:02 -0800</bug_when>
    <thetext>the test site khanapp.com
Content-Type: web; charset=utf-8

Both Chrome and Firefox handle this. http://mimesniff.spec.whatwg.org/ says &quot;If
the Content-Type header field is absent or if its value cannot be interpreted
as a media type (e.g. because its value doesn&apos;t contain a U+002F SOLIDUS (&apos;/&apos;)
character), then there is no official-type.&quot;

We should use sniffing here since the Content-Type is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>771636</commentid>
    <comment_count>1</comment_count>
      <attachid>175166</attachid>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-11-20 00:21:16 -0800</bug_when>
    <thetext>Created attachment 175166
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>771852</commentid>
    <comment_count>2</comment_count>
      <attachid>175166</attachid>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2012-11-20 07:33:52 -0800</bug_when>
    <thetext>Comment on attachment 175166
Patch

What&apos;s the problem here? 
1) Just checking &apos;/&apos; isn&apos;t enough to identify all malformed MIME type strigns.
2) What is different between malformed MIME strings and unknown MIME strings? And why should we treat them differently?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>771853</commentid>
    <comment_count>3</comment_count>
      <attachid>175166</attachid>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2012-11-20 07:34:18 -0800</bug_when>
    <thetext>Comment on attachment 175166
Patch

Also, if it does appear to be problem, we need a http test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>772292</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2012-11-20 16:49:32 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; the test site khanapp.com
&gt; Content-Type: web; charset=utf-8
&gt; 
&gt; Both Chrome and Firefox handle this.

Great...  so if Chrome handles it at least one WebKit port does.  Have you tried Safari?

&gt; http://mimesniff.spec.whatwg.org/ says &quot;If
&gt; the Content-Type header field is absent or if its value cannot be interpreted
&gt; as a media type (e.g. because its value doesn&apos;t contain a U+002F SOLIDUS (&apos;/&apos;)
&gt; character), then there is no official-type.&quot;

I agree, that is the language of the spec.  At least the snippet you include doesn&apos;t specify what browsers should do in this case.

Do you have a bug to report here?  In other words, is this causing problems at a real world site?

&gt; We should use sniffing here since the Content-Type is invalid.

Some platforms sniff all network traffic (except for very specific scenarios) since the network is an untrusted place.

Are you trying to fix only one specific platform here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773597</commentid>
    <comment_count>5</comment_count>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-11-21 23:00:19 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #0)
&gt; &gt; the test site khanapp.com
&gt; &gt; Content-Type: web; charset=utf-8
&gt; &gt; 
&gt; &gt; Both Chrome and Firefox handle this.
&gt; 
&gt; Great...  so if Chrome handles it at least one WebKit port does.  Have you tried Safari?

yes, safari also works.

&gt; 
&gt; &gt; http://mimesniff.spec.whatwg.org/ says &quot;If
&gt; &gt; the Content-Type header field is absent or if its value cannot be interpreted
&gt; &gt; as a media type (e.g. because its value doesn&apos;t contain a U+002F SOLIDUS (&apos;/&apos;)
&gt; &gt; character), then there is no official-type.&quot;
&gt; 
&gt; I agree, that is the language of the spec.  At least the snippet you include doesn&apos;t specify what browsers should do in this case.
&gt; 
&gt; Do you have a bug to report here?  In other words, is this causing problems at a real world site?

khanapp.com was the site reported, don&apos;t have other sites at hand.

&gt; 
&gt; &gt; We should use sniffing here since the Content-Type is invalid.
&gt; 
&gt; Some platforms sniff all network traffic (except for very specific scenarios) since the network is an untrusted place.
&gt; 
&gt; Are you trying to fix only one specific platform here?

It looks only Qt/BlackBerry uses MIMESniffing.cpp, so with this patch, qt/blackberry will work the same way as firefox/chrome/safari. Besides, Chrome porting also uses similar solution in its mime_sniffer.cc to check if mimetype contains slash &apos;/&apos; and commented it&apos;s following firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773599</commentid>
    <comment_count>6</comment_count>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-11-21 23:04:00 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 175166 [details])
&gt; What&apos;s the problem here? 
&gt; 1) Just checking &apos;/&apos; isn&apos;t enough to identify all malformed MIME type strigns.
&gt; 2) What is different between malformed MIME strings and unknown MIME strings? And why should we treat them differently?

&quot;malform&quot; would be too general, I will narrow down the subject. Come up with new patch...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773608</commentid>
    <comment_count>7</comment_count>
      <attachid>175596</attachid>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-11-21 23:15:35 -0800</bug_when>
    <thetext>Created attachment 175596
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>774022</commentid>
    <comment_count>8</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2012-11-22 10:10:03 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; It looks only Qt/BlackBerry uses MIMESniffing.cpp, so with this patch, qt/blackberry will work the same way as firefox/chrome/safari.
 Besides, Chrome porting also uses similar solution in its mime_sniffer.cc to check if mimetype contains slash &apos;/&apos; and commented it&apos;s following firefox.

Apparently Chrome designed to match Firefox here.  Saying it&apos;ll also act like Safari seems like a leap.  Achieving the same end result as Safari does not mean the more thorough content-sniffing that&apos;s built in to Safari&apos;s networking library does it the same way.

I&apos;m still not convinced this patch is the right thing to do, but I won&apos;t r- it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>778081</commentid>
    <comment_count>9</comment_count>
      <attachid>175596</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-11-28 11:02:03 -0800</bug_when>
    <thetext>Comment on attachment 175596
Patch

Rejecting attachment 175596 from commit-queue.

Failed to run &quot;[&apos;/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;-...&quot; exit_code: 2

Last 500 characters of output:
ueue/Source/WebKit/chromium/third_party/leveldatabase/src --revision 68 --non-interactive --force --accept theirs-conflict --ignore-externals&apos; in &apos;/mnt/git/webkit-commit-queue/Source/WebKit/chromium&apos;
38&gt;At revision 68.

________ running &apos;/usr/bin/python tools/clang/scripts/update.py --mac-only&apos; in &apos;/mnt/git/webkit-commit-queue/Source/WebKit/chromium&apos;

________ running &apos;/usr/bin/python gyp_webkit&apos; in &apos;/mnt/git/webkit-commit-queue/Source/WebKit/chromium&apos;
Updating webkit projects from gyp files...

Full output: http://queues.webkit.org/results/15015552</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>781081</commentid>
    <comment_count>10</comment_count>
      <attachid>177170</attachid>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-12-02 18:40:40 -0800</bug_when>
    <thetext>Created attachment 177170
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>781084</commentid>
    <comment_count>11</comment_count>
      <attachid>177170</attachid>
    <who name="Mary Wu">mawu</who>
    <bug_when>2012-12-02 18:55:15 -0800</bug_when>
    <thetext>Comment on attachment 177170
Patch

fix nit in change log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>781088</commentid>
    <comment_count>12</comment_count>
      <attachid>177170</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-02 19:31:19 -0800</bug_when>
    <thetext>Comment on attachment 177170
Patch

Clearing flags on attachment: 177170

Committed r136361: &lt;http://trac.webkit.org/changeset/136361&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>781089</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-02 19:31:24 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>175166</attachid>
            <date>2012-11-20 00:21:16 -0800</date>
            <delta_ts>2012-11-21 23:14:54 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-102778-20121120161853.patch</filename>
            <type>text/plain</type>
            <size>2193</size>
            <attacher name="Mary Wu">mawu</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTI3NDQwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9T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gYS9Tb3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS9uZXR3b3JrL01JTUVTbmlm
ZmluZy5jcHAKKysrIGIvU291cmNlL1dlYkNvcmUvcGxhdGZvcm0vbmV0d29yay9NSU1FU25pZmZp
bmcuY3BwCkBAIC00NzksNyArNDc5LDggQEAgTUlNRVNuaWZmZXI6Ok1JTUVTbmlmZmVyKGNvbnN0
IGNoYXIqIGFkdmVydGlzZWRNSU1FVHlwZSwgYm9vbCBpc1N1cHBvcnRlZEltYWdlVHkKICAgICA6
IG1fZGF0YVNpemUoMCkKICAgICAsIG1fZnVuY3Rpb24oMCkKIHsKLSAgICBpZiAoIWFkdmVydGlz
ZWRNSU1FVHlwZSkgeworICAgIGlmICghYWR2ZXJ0aXNlZE1JTUVUeXBlIHx8ICFzdHJjaHIoYWR2
ZXJ0aXNlZE1JTUVUeXBlLCAnLycpKSB7CisgICAgICAgIC8vIGlmIGNvbnRlbnRUeXBlIGlzIGVt
cHR5IG9yIG1hbGZvcm1lZCwgZm9yY2Ugc25pZmYgZnJvbSBzY3JhdGNoLgogICAgICAgICBtX2Rh
dGFTaXplID0gNTEyOwogICAgICAgICBtX2Z1bmN0aW9uID0gJnVua25vd25UeXBlU25pZmZpbmdQ
cm9jZWR1cmU7CiAgICAgICAgIHJldHVybjsK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>175596</attachid>
            <date>2012-11-21 23:15:35 -0800</date>
            <delta_ts>2012-12-02 18:39:54 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-102778-20121122151308.patch</filename>
            <type>text/plain</type>
            <size>1907</size>
            <attacher name="Mary Wu">mawu</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM1MzYzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzNkZ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KyAgICBpZiAoIXN0cmNocih0eXBlLCAnLycpKSB7CisgICAgICAgIC8vIEZpcmVmb3gv
Q2hyb21lIHJlamVjdHMgYSBtaW1lIHR5cGUgaWYgaXQgZG9lcyBub3QgY29udGFpbiBhIHNsYXNo
LgorICAgICAgICByZXR1cm4gdHJ1ZTsKKyAgICB9CisgICAgcmV0dXJuIGZhbHNlOwogfQogCiBj
b25zdCBjaGFyKiB4bWxUeXBlc1tdID0gewo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>177170</attachid>
            <date>2012-12-02 18:40:40 -0800</date>
            <delta_ts>2012-12-02 19:31:19 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-102778-20121203103755.patch</filename>
            <type>text/plain</type>
            <size>2022</size>
            <attacher name="Mary Wu">mawu</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM1MzYzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzNkZTkwOWU5MmRmMDY3
OWRlZjdjMDQ3Y2I1NzAyNzBmM2I3ZjZiZi4uOTY3ZjY4MGVjYmNhNDViY2U0Mzg0ZDk0MmY3ZmZm
MmI3ZTYzNjQ2NiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIzIEBACisyMDEyLTExLTIxICBNYXJ5
IFd1ICA8bWFyeS53dUB0b3JjaG1vYmlsZS5jb20uY24+CisKKyAgICAgICAgc2hvdWxkIHNuaWZm
IGl0IGlmIG1pbWV0eXBlIGRvbid0IGNvbnRhaW4gYSBzbGFzaC4KKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE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mb3JtL25ldHdvcmsv
TUlNRVNuaWZmaW5nLmNwcCBiL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL25ldHdvcmsvTUlNRVNu
aWZmaW5nLmNwcAppbmRleCBjMDE5NzAyZmNlYWYyMWRjY2E5MjU3YjBiMDgzYzgzMWYyZWZmMDNk
Li4yN2FlZmNiY2ZhMDhiMGVmNTkwMzE4YTM3NDExYjY0OGYzYTE1ZGRiIDEwMDY0NAotLS0gYS9T
b3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS9uZXR3b3JrL01JTUVTbmlmZmluZy5jcHAKKysrIGIvU291
cmNlL1dlYkNvcmUvcGxhdGZvcm0vbmV0d29yay9NSU1FU25pZmZpbmcuY3BwCkBAIC02NSw3ICs2
NSwxMyBAQCBjb25zdCBzaXplX3QgdW5rbm93blR5cGVzU2l6ZSA9IHNpemVvZih1bmtub3duVHlw
ZXMpIC8gc2l6ZW9mKHVua25vd25UeXBlc1swXSk7CiAKIHN0YXRpYyBpbmxpbmUgYm9vbCBpc1Vu
a25vd25UeXBlKGNvbnN0IGNoYXIqIHR5cGUpCiB7Ci0gICAgcmV0dXJuIGlzVGV4dEluTGlzdCh0
eXBlLCB1bmtub3duVHlwZXNTaXplLCB1bmtub3duVHlwZXMpOworICAgIGlmIChpc1RleHRJbkxp
c3QodHlwZSwgdW5rbm93blR5cGVzU2l6ZSwgdW5rbm93blR5cGVzKSkKKyAgICAgICAgcmV0dXJu
IHRydWU7CisgICAgaWYgKCFzdHJjaHIodHlwZSwgJy8nKSkgeworICAgICAgICAvLyBGaXJlZm94
L0Nocm9tZSByZWplY3RzIGEgbWltZSB0eXBlIGlmIGl0IGRvZXMgbm90IGNvbnRhaW4gYSBzbGFz
aC4KKyAgICAgICAgcmV0dXJuIHRydWU7CisgICAgfQorICAgIHJldHVybiBmYWxzZTsKIH0KIAog
Y29uc3QgY2hhciogeG1sVHlwZXNbXSA9IHsK
</data>

          </attachment>
      

    </bug>

</bugzilla>