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