<?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>16950</bug_id>
          
          <creation_ts>2012-05-07 06:46:54 +0000</creation_ts>
          <short_desc>Throw SyntaxError instead of InvalidStateError for invalid content-type</short_desc>
          <delta_ts>2012-05-07 21:33:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>File API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>
          <dependson>16728</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>glenn</cc>
    
    <cc>jonas</cc>
    
    <cc>public-webapps</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67379</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-05-07 06:46:54 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #16728 +++

I think that SyntaxError is more appropriate than InvalidStateError when Blob content-type is set to an invalid string in slice() or Blob().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67380</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-05-07 07:50:34 +0000</bug_when>
    <thetext>Agreed, that would be a better match</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67434</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-05-07 21:33:42 +0000</bug_when>
    <thetext>Done.

http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob and http://dev.w3.org/2006/webapi/FileAPI/#dfn-slice

Marking Resolved | Fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>