WebSocket: Could not handle zero length text frame.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Aug 2011 07:06:56 +0000 (07:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Aug 2011 07:06:56 +0000 (07:06 +0000)
commitc2244ed5b5cf25918f3462d4e15661a542817f30
treea33a57278b21a12576ae3c146fcf1d5762a624d9
parent825b1970adfc407bd1412221eb474ad8f83ea1bd
WebSocket: Could not handle zero length text frame.
https://bugs.webkit.org/show_bug.cgi?id=65592

Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-08-03
Reviewed by Kent Tamura.

Source/WebCore:

Test: http/tests/websocket/tests/hybi/zero-length-text.html

* websockets/WebSocketChannel.cpp:
(WebCore::WebSocketChannel::processFrame):

LayoutTests:

* http/tests/websocket/tests/hybi/zero-length-text-expected.txt: Added.
* http/tests/websocket/tests/hybi/zero-length-text.html: Added.
* http/tests/websocket/tests/hybi/zero-length-text_wsh.py: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/websocket/tests/hybi/zero-length-text-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/websocket/tests/hybi/zero-length-text.html [new file with mode: 0644]
LayoutTests/http/tests/websocket/tests/hybi/zero-length-text_wsh.py [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/websockets/WebSocketChannel.cpp