<?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>192749</bug_id>
          
          <creation_ts>2018-12-17 00:58:41 -0800</creation_ts>
          <short_desc>Consider strictly enforcing MIME checks for Workers.</short_desc>
          <delta_ts>2022-07-05 14:00:07 -0700</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>236411</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike West">mkwst</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>d</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1488403</commentid>
    <comment_count>0</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2018-12-17 00:58:41 -0800</bug_when>
    <thetext>After discussion in https://github.com/whatwg/html/issues/3255 and https://github.com/whatwg/html/pull/4001, Chrome is shipping strict MIME type checks on `importScripts()` in Chrome 71 (https://chromium-review.googlesource.com/c/chromium/src/+/1206270). Intent to Remove thread with discussion and data at https://groups.google.com/a/chromium.org/d/msg/blink-dev/35t5cJQ3J_Q/FH45dl0vAwAJ.

It would be lovely if y&apos;all followed suit!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1490229</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-12-20 17:48:44 -0800</bug_when>
    <thetext>&lt;rdar://problem/46889296&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1591007</commentid>
    <comment_count>2</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2019-11-18 01:44:06 -0800</bug_when>
    <thetext>Chrome and Firefox shipped restrictions on `importScripts()` a little while back.

We&apos;re now both aiming to tighten it to `new {Shared,Service,}Worker()` as well. Perhaps y&apos;all could weigh in, one way or another, on https://github.com/whatwg/html/issues/3255?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1591065</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-11-18 09:04:55 -0800</bug_when>
    <thetext>On the surface this seems like a good change. We will definitely dig into this asap!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679840</commentid>
    <comment_count>4</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2020-08-12 14:57:34 -0700</bug_when>
    <thetext>We&apos;ve now merged the second stage of this into the HTML spec: adding MIME type checks for HTTP(S) worker scripts. See https://github.com/whatwg/html/pull/5302 and the corresponding tests pull request in https://github.com/web-platform-tests/wpt/pull/24983. Firefox is shipping shortly.

data: and blob: URL workers are still not checked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880793</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-07-05 14:00:07 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 236411 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>