WebSocket API defines a new attribute "binaryType" which controls the data type of MessageEvent.data for binary frames. http://dev.w3.org/html5/websockets/#the-websocket-interface
Created attachment 103449 [details] Patch
Comment on attachment 103449 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=103449&action=review > Source/WebCore/websockets/WebSocket.cpp:223 > + if (m_binaryType == BinaryTypeBlob) > + return "blob"; > + if (m_binaryType == BinaryTypeArrayBuffer) > + return "arraybuffer"; We had better use switch-case.
Created attachment 103452 [details] Patch for landing
Comment on attachment 103452 [details] Patch for landing Clearing flags on attachment: 103452 Committed r92759: <http://trac.webkit.org/changeset/92759>
All reviewed patches have been landed. Closing bug.