WebSocket: Add binaryType attribute
authoryutak@chromium.org <yutak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Aug 2011 09:19:51 +0000 (09:19 +0000)
committeryutak@chromium.org <yutak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Aug 2011 09:19:51 +0000 (09:19 +0000)
commitcee3f34b1d21649c70141da870e07d5cdc55ddae
tree9c49f7f9c27cc31d8ce0efaf061e62cb1bdd8d41
parenta8f960dc5aa4da07ec358a2d864851716bd2a18a
WebSocket: Add binaryType attribute
https://bugs.webkit.org/show_bug.cgi?id=65967

Reviewed by Kent Tamura.

Source/WebCore:

Add a new attribute "binaryType" to WebSocket. It controls the data type of MessageEvent
for WebSocket's binary frames.

Tests: http/tests/websocket/tests/hixie76/undefined-attributes.html
       http/tests/websocket/tests/hybi/binary-type.html

* websockets/WebSocket.cpp:
(WebCore::WebSocket::WebSocket):
(WebCore::WebSocket::binaryType):
(WebCore::WebSocket::setBinaryType):
* websockets/WebSocket.h:
* websockets/WebSocket.idl:

LayoutTests:

* http/tests/websocket/tests/hixie76/undefined-attributes-expected.txt: Added.
* http/tests/websocket/tests/hixie76/undefined-attributes.html: Added.
* http/tests/websocket/tests/hybi/binary-type-expected.txt: Added.
* http/tests/websocket/tests/hybi/binary-type.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/websocket/tests/hixie76/undefined-attributes-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/websocket/tests/hixie76/undefined-attributes.html [new file with mode: 0644]
LayoutTests/http/tests/websocket/tests/hybi/binary-type-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/websocket/tests/hybi/binary-type.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/websockets/WebSocket.cpp
Source/WebCore/websockets/WebSocket.h
Source/WebCore/websockets/WebSocket.idl