Never send empty non-final messages to Blink.
commit326b8fb321e4fa57c24c53ab7042b54d40eb7529
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 21 Feb 2014 21:14:00 +0000 (21 21:14 +0000)
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 21 Feb 2014 21:14:00 +0000 (21 21:14 +0000)
tree9b90ca708d2e71b9a3822587d67d6600648fed20
parent28996b16ec0cd8d297a0f3f4d52cf8f027c95845
Never send empty non-final messages to Blink.

The IPC message OnDataFrame() in websocket_messages.h documents the
restriction that frames must be either non-empty or final. Up until now,
net::WebSocketChannel has permitted empty opening frames through. Fix
it.

BUG=343060
TEST=net_unittests --gtest_filter=WebSocket*, fragmented-binary-frames layout test

Review URL: https://codereview.chromium.org/171813014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252644 0039d316-1c4b-4281-b951-d872f2087c98
net/websockets/websocket_channel.cc
net/websockets/websocket_channel.h
net/websockets/websocket_channel_test.cc