<?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>13800</bug_id>
          
          <creation_ts>2011-08-17 00:12:02 +0000</creation_ts>
          <short_desc>Add ArrayBuffer to Transferable types list (2.8.4); update Structured clone algorithm</short_desc>
          <delta_ts>2013-06-12 23:47:18 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19071</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>12586</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>kbr</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55254</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2011-08-17 00:12:02 +0000</bug_when>
    <thetext>In order to support suggested changes in CanvasPixelArray -&gt; Uint8ClampedArray (per bug 12586), ArrayBuffer should be specified as a Transferable type in section 2.8.4.

Furthermore, in the structured clone algorithm, the cloning of ImageData should be updated to allow the ImageData&apos;s Uint8ClampedArray to be transferred:

Current text:
&amp;#8618;If input is a ImageData object
Let output be a newly constructed ImageData object with the same width and height as input, and with a newly constructed CanvasPixelArray for its data attribute, with the same length and pixel values as the input&apos;s.

Proposed change:
&amp;#8618;If input is a ImageData object
Let output be a newly constructed ImageData object with the same width and height as input, and with a newly constructed Uint8ClampedArray view of the ArrayBuffer in the destination object of memory for its data attribute, with the same length and pixel values as the input&apos;s.

...or similar text to indicate that if the ImageData&apos;s Uint8ClampedArray&apos;s ArrayBuffer is transfered, then the new Uint8ClampedArray instance will be created over the transferred ArrayBuffer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57126</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-21 22:55:52 +0000</bug_when>
    <thetext>This is being specced in the TypedArray spec for the moment, but it&apos;ll come over once it&apos;s solid. (kbr: Correct me if I&apos;m wrong here.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58491</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-19 23:58:35 +0000</bug_when>
    <thetext>Marking this REMIND for now. I will be doing this but we&apos;re waiting for the ArrayBuffer part of this to be stable before moving it from ArrayBuffer to HTML.

Please don&apos;t hesitate to reopen this if you notice that ArrayBuffer is ready for this before I do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58494</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-10-20 01:45:49 +0000</bug_when>
    <thetext>I&apos;d like to request review of the changes that were made to the typed array spec today in response to http://www.w3.org/Bugs/Public/show_bug.cgi?id=13799 . Please see https://www.khronos.org/registry/typedarray/specs/latest/ . If they look okay, that&apos;s a good indication that they&apos;re solidifying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58503</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-20 05:53:43 +0000</bug_when>
    <thetext>Roger, will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58509</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-20 06:19:34 +0000</bug_when>
    <thetext>kbr: The new text looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58848</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 04:17:52 +0000</bug_when>
    <thetext>kbr: Do you want me to move this to the HTML spec? Or should I wait? (Either is fine by me.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58865</commentid>
    <comment_count>7</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-10-25 04:59:37 +0000</bug_when>
    <thetext>Thanks for your review above.

(In reply to comment #6)
&gt; kbr: Do you want me to move this to the HTML spec? Or should I wait? (Either is
&gt; fine by me.)

Could we hold off a little longer? Ideally I&apos;d like to snapshot the typed array spec again, so that the new functionality isn&apos;t highlighted as strawman proposals.

If this means closing this bug as REMIND again, no problem; I can take responsibility for reopening it when the next snapshot is taken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58873</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 05:12:12 +0000</bug_when>
    <thetext>Cool, thanks. Will mark it REMIND, just reopen it when you&apos;re ready!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82324</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-01-30 07:53:10 +0000</bug_when>
    <thetext>This bug was cloned to create HTML WG bug 19071.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84857</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-22 17:52:16 +0000</bug_when>
    <thetext>kbr: Do you have an update here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85924</commentid>
    <comment_count>11</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2013-04-11 01:09:15 +0000</bug_when>
    <thetext>The editors&apos; draft of the typed array spec http://www.khronos.org/registry/typedarray/specs/latest/ has been updated to remove the &quot;strawman&quot; designation from the structured cloning and transfer operations, since there are now multiple implementations of this functionality and it has been non-controversial. Please feel free to incorporate this text into the HTML5 spec. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88838</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-06 19:04:44 +0000</bug_when>
    <thetext>So I was looking at this, and I wonder... should we really move this from the ArrayBuffer spec to the HTML spec? It seems like it works pretty well to have it in the ArrayBuffer spec, and it&apos;s unambiguously defined. Having it in ArrayBuffer means that everything you need to know about implementing ArrayBuffer is in one place, which seems like the right choice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88852</commentid>
    <comment_count>13</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2013-06-06 20:22:52 +0000</bug_when>
    <thetext>Fine with me. One thing to keep in mind is the typed array types are being subsumed into the ECMAScript 6 spec, and the typed array spec will probably become obsolete. It isn&apos;t clear to me where the Transferable functionality, which is specified at the HTML5 level rather than at the ES6 level, should go after this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89218</commentid>
    <comment_count>14</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-12 23:46:57 +0000</bug_when>
    <thetext>Ah, ok. In that case I&apos;ll just spec it in HTML, save us some trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89219</commentid>
    <comment_count>15</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-12 23:47:18 +0000</bug_when>
    <thetext>https://www.w3.org/Bugs/Public/show_bug.cgi?id=13800</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>