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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19937</bug_id>
          
          <creation_ts>2012-11-11 18:36:29 +0000</creation_ts>
          <short_desc>&quot;Determining the supplied media type&quot; should return &quot;has-content-type&quot; rather than using a global</short_desc>
          <delta_ts>2012-11-16 22:08:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>MIME</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Gordon P. Hemsley">gphemsley</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78200</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-11 18:36:29 +0000</bug_when>
    <thetext># [19:28] &lt;Hixie&gt; GPHemsley: what has the &quot;has content type&quot; flag? is it a system-global flag?  
# [19:29] &lt;GPHemsley&gt; Hixie: If I understand what you&apos;re asking, yes.  
# [19:30] &lt;GPHemsley&gt; Hixie: It is set in the &quot;supplied media type detection algorithm&quot; and checked again in the &quot;media type sniffing algorithm&quot;  
# [19:30] &lt;Hixie&gt; GPHemsley: so if two pages are both going to read a resource&apos;s mime type at the same time, they interfere?  
# [19:31] &lt;GPHemsley&gt; Hixie: Oh, it&apos;s not that global. This entire spec assumes each resource analysis is self-contained.  
# [19:32] &lt;Hixie&gt; GPHemsley: &quot;assumes&quot; gets us into a lot of trouble :-P  
# [19:32] &lt;GPHemsley&gt; Hixie: Yeah... hadn&apos;t considered the possibility  
# [19:32] &lt;Hixie&gt; i recommend just making it a return value  
# [19:32] &lt;Hixie&gt; return a pair (type, had-content-type)  
# [19:32] &lt;Hixie&gt; or some such</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78423</commentid>
    <comment_count>1</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2012-11-16 22:04:52 +0000</bug_when>
    <thetext>I opted instead to attach metadata directly to each resource:

http://mimesniff.spec.whatwg.org/#handling-a-resource

Let me know if this doesn&apos;t go far enough to assuage your concerns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78424</commentid>
    <comment_count>2</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2012-11-16 22:08:38 +0000</bug_when>
    <thetext>https://github.com/whatwg/mimesniff/commit/db44b30f0afcb91c38697791c6fb396192087080</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>