<?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>85961</bug_id>
          
          <creation_ts>2012-05-09 00:16:42 -0700</creation_ts>
          <short_desc>XHR/WebSocket: send(ArrayBuffer) -&gt; send(ArrayBufferView)</short_desc>
          <delta_ts>2013-04-08 06:39:46 -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>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</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>90536</dependson>
    
    <dependson>90877</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuta Kitamura">yutak</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bashi</cc>
    
    <cc>ian</cc>
    
    <cc>kbr</cc>
    
    <cc>toyoshim</cc>
    
    <cc>tyoshino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>619223</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2012-05-09 00:16:42 -0700</bug_when>
    <thetext>Recently, annevk and hixie have changed XHR/WebSocket spec so {XMLHttpRequest,WebSocket}.send() could accept ArrayBufferView instead of ArrayBuffer:

http://dvcs.w3.org/hg/xhr/rev/f0c81ac5c134  (XHR spec change)
http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method  (XHR latest spec)

http://html5.org/tools/web-apps-tracker?from=7084&amp;to=7085  (WebSocket spec change)
http://dev.w3.org/html5/websockets/#dom-websocket-send  (WebSocket latest spec)

Related discussion:
http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0141.html


However, this change yields compatibility breakage (i.e. existing code using send(ArrayBuffer) will no longer work), so we might want to discuss how to deal with it before implementing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728883</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-26 12:48:03 -0700</bug_when>
    <thetext>The spec was updated to allow both ArrayBuffer and ArrayBufferView to be sent in WebSocket.

The XHR spec has moved to http://xhr.spec.whatwg.org/ but still only has ArrayBufferView.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870756</commentid>
    <comment_count>2</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2013-04-08 06:39:46 -0700</bug_when>
    <thetext>WebSocket spec:
As Hixie said, we added ArrayBufferView but also kept ArrayBuffer basically for compatibility.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17263
http://dev.w3.org/html5/websockets/

WebSocket WebCore implementation:
It conforms to the latest spec, i.e. both ArrayBuffer and ArrayBufferView
https://bugs.webkit.org/show_bug.cgi?id=90877
http://trac.webkit.org/browser/trunk/Source/WebCore/Modules/websockets/WebSocket.idl?rev=124846

XHR:
Seems there&apos;s no active discussion after dropping ArrayBuffer and adding ArrayBufferView.

As it&apos;s a matter of spec discussion, it&apos;s ok to close this bug for now, I think.

http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0214.html

Simon&apos;s summary of conclusion.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16732</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>