<?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>16732</bug_id>
          
          <creation_ts>2012-04-13 14:28:28 +0000</creation_ts>
          <short_desc>Use ArrayBufferView instead of ArrayBuffer in Blob constructor</short_desc>
          <delta_ts>2012-05-07 05:06:53 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>public-webapps</cc>
    
    <cc>VYV03354</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>66694</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-13 14:28:28 +0000</bug_when>
    <thetext>XHR.send() was changed to use ArrayBufferView instead of ArrayBuffer because if you have a sliced view you may want to send that (or here create a blob), but .buffer represents the whole data, not just the sliced view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66705</commentid>
    <comment_count>1</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-04-13 17:35:54 +0000</bug_when>
    <thetext>Are you sure you mean *instead* of ArrayBuffer, and not *in addition* to ArrayBuffer?  Essentially, my question is, should ArrayBufferView *replace* ArrayBuffer in the existing constructor, or should it be an additional optional invocation parameter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66728</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-16 04:58:09 +0000</bug_when>
    <thetext>The XHR discussion ended up replacing ArrayBuffer with ArrayBufferView for send().

I think one argument is that authors may have a sliced view and then pass .buffer and not realize that it contains the whole data, which results in buggy code. If we support only ArrayBufferView, we prevent the buggy case from happening (at the cost of making authors create a view).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67374</commentid>
    <comment_count>3</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-05-07 05:06:53 +0000</bug_when>
    <thetext>Marking this fixed. http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>