<?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>27852</bug_id>
          
          <creation_ts>2015-01-19 11:41:42 +0000</creation_ts>
          <short_desc>Consider rejecting script responses whose MIME type isn&apos;t sufficiently scripty.</short_desc>
          <delta_ts>2016-03-24 13:53:25 +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>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=1103360</see_also>
    
    <see_also>http://code.google.com/p/chromium/issues/detail?id=433049</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Needs Research</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike West">mkwst</reporter>
          <assigned_to name="Domenic Denicola">d</assigned_to>
          <cc>annevk</cc>
    
    <cc>d</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mkwst</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117308</commentid>
    <comment_count>0</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2015-01-19 11:41:42 +0000</bug_when>
    <thetext>https://crbug.com/433049 changes Chrome&apos;s behavior to reject scripts whose MIME type is `image/*`. If this doesn&apos;t Break The Internet, we should consider changing the spec to match (and deciding on other types which might be blockable in the same way (audio/video/etc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117309</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-19 11:53:53 +0000</bug_when>
    <thetext>This should happen in HTML, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117313</commentid>
    <comment_count>2</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2015-01-19 13:04:16 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; This should happen in HTML, no?

The spec that Chrome now violates is HTML, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117314</commentid>
    <comment_count>3</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2015-01-19 13:04:49 +0000</bug_when>
    <thetext>Maybe? Changing components, CCing hixie.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117432</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-01-22 17:02:56 +0000</bug_when>
    <thetext>Please change the Target Milestone on this bug to Unsorted once we have information on how compatible this is. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123018</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-02 09:09:29 +0000</bug_when>
    <thetext>What we need to do here:

* Share fetching logic for &lt;script&gt;, importScripts(), new Worker, new SharedWorker()
* Ban image/* responses (act as network error)

Probably best as two distinct changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123019</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-02 09:09:53 +0000</bug_when>
    <thetext>And then convince &lt;svg:script&gt; to use the same &quot;script fetch&quot; hook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124692</commentid>
    <comment_count>7</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2016-01-24 05:40:16 +0000</bug_when>
    <thetext>Mike, it sounds like https://code.google.com/p/chromium/issues/detail?id=433049 did end up landing, right? Can you confirm that it&apos;s the same blocking for &lt;script&gt;, importScripts, new Worker, and new SharedWorker? Or is it just &lt;script&gt;?

I&apos;m happy to take this, although maybe if it ends up being blocked in all those places it&apos;ll be better over in Fetch...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125614</commentid>
    <comment_count>8</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2016-03-24 13:35:06 +0000</bug_when>
    <thetext>Poking at this in https://github.com/whatwg/fetch/pull/261.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>