<?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>19071</bug_id>
          
          <creation_ts>2012-09-25 22:24:45 +0000</creation_ts>
          <short_desc>Add ArrayBuffer to Transferable types list (2.8.4); update Structured clone algorithm</short_desc>
          <delta_ts>2013-01-30 07:53:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>REMIND</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=13800</see_also>
          <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>contributor</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>ian</cc>
    
    <cc>kbr</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>74525</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-25 22:24:45 +0000</bug_when>
    <thetext>This was was cloned from bug 13800 as part of operation REMIND convergence.
Originally filed: 2011-08-17 00:12:00 +0000
Original reporter: Travis Leithead [MSFT] &lt;travil@microsoft.com&gt;

================================================================================
 #0   Travis Leithead [MSFT]                          2011-08-17 00:12:02 +0000 
--------------------------------------------------------------------------------
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.
================================================================================
 #1   Ian &apos;Hixie&apos; Hickson                             2011-09-21 22:55:52 +0000 
--------------------------------------------------------------------------------
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.)
================================================================================
 #2   Ian &apos;Hixie&apos; Hickson                             2011-10-19 23:58:35 +0000 
--------------------------------------------------------------------------------
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.
================================================================================
 #3   Kenneth Russell                                 2011-10-20 01:45:49 +0000 
--------------------------------------------------------------------------------
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.
================================================================================
 #4   Ian &apos;Hixie&apos; Hickson                             2011-10-20 05:53:43 +0000 
--------------------------------------------------------------------------------
Roger, will do.
================================================================================
 #5   Ian &apos;Hixie&apos; Hickson                             2011-10-20 06:19:34 +0000 
--------------------------------------------------------------------------------
kbr: The new text looks good.
================================================================================
 #6   Ian &apos;Hixie&apos; Hickson                             2011-10-25 04:17:52 +0000 
--------------------------------------------------------------------------------
kbr: Do you want me to move this to the HTML spec? Or should I wait? (Either is fine by me.)
================================================================================
 #7   Kenneth Russell                                 2011-10-25 04:59:37 +0000 
--------------------------------------------------------------------------------
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.
================================================================================
 #8   Ian &apos;Hixie&apos; Hickson                             2011-10-25 05:12:12 +0000 
--------------------------------------------------------------------------------
Cool, thanks. Will mark it REMIND, just reopen it when you&apos;re ready!
================================================================================</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>