WebSocket: Remove hixie76 protocol implementation
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 07:31:02 +0000 (07:31 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 07:31:02 +0000 (07:31 +0000)
commit35ac7976b2ac92074f6cbf73c03bc4e0239d43fa
tree186d96d57dcabdda8d139326e574919bc5a2addb
parent4b98edb8741e22d0ec64ea3843810314534ef373
WebSocket: Remove hixie76 protocol implementation
https://bugs.webkit.org/show_bug.cgi?id=88620

Patch by Yuta Kitamura <yutak@chromium.org> on 2012-07-10
Reviewed by Adam Barth.

Source/WebCore:

This change removes code that implements the old hixie-76 WebSocket protocol which
isn't used anymore.

No new tests are added, because the code using the current protocol should not be
affected. Tests for hixie-76 protocol are skipped (these tests will be removed
eventually).

* Modules/websockets/ThreadableWebSocketChannel.h:
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
(WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
(WebCore::ThreadableWebSocketChannelClientWrapper::didCreateWebSocketChannel):
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
(ThreadableWebSocketChannelClientWrapper):
* Modules/websockets/WebSocket.cpp:
(WebCore::WebSocket::WebSocket):
(WebCore::WebSocket::connect):
(WebCore::WebSocket::send):
(WebCore::WebSocket::protocol):
(WebCore::WebSocket::extensions):
(WebCore::WebSocket::binaryType):
(WebCore::WebSocket::setBinaryType):
(WebCore::WebSocket::didReceiveMessageError):
(WebCore::WebSocket::didClose):
(WebCore::WebSocket::getFramingOverhead):
* Modules/websockets/WebSocket.h:
* Modules/websockets/WebSocketChannel.cpp:
(WebCore::WebSocketChannel::WebSocketChannel):
(WebCore::WebSocketChannel::connect):
(WebCore::WebSocketChannel::send):
(WebCore::WebSocketChannel::fail):
(WebCore::WebSocketChannel::didCloseSocketStream):
(WebCore::WebSocketChannel::processBuffer):
(WebCore::WebSocketChannel::startClosingHandshake):
(WebCore::WebSocketChannel::enqueueTextFrame):
(WebCore::WebSocketChannel::enqueueRawFrame):
(WebCore::WebSocketChannel::enqueueBlobFrame):
(WebCore::WebSocketChannel::processOutgoingFrameQueue):
(WebCore::WebSocketChannel::abortOutgoingFrameQueue):
* Modules/websockets/WebSocketChannel.h:
(WebSocketChannel):
* Modules/websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::WebSocketHandshake):
(WebCore::WebSocketHandshake::clientHandshakeMessage):
(WebCore::WebSocketHandshake::clientHandshakeRequest):
(WebCore::WebSocketHandshake::readServerHandshake):
(WebCore::WebSocketHandshake::checkResponseHeaders):
* Modules/websockets/WebSocketHandshake.h:
* Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
(WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::create):
(WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::WorkerContextDidInitializeTask):
(WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
* Modules/websockets/WorkerThreadableWebSocketChannel.h:
(WorkerThreadableWebSocketChannel):
(Peer):
(Bridge):

LayoutTests:

Skip tests under hixie76 directory in all ports, because hixie-76 protocol support is
being dropped. These tests will be removed later.

* platform/chromium/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/Skipped:
* platform/wk2/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
179 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/websocket/tests/hixie76/alert-in-event-handler-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/alert-in-event-handler.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-handshake-crash-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-handshake-crash.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-handshake-crash_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-control-chars-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-control-chars.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-empty-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-empty.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-non-ascii-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bad-sub-protocol-non-ascii.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bufferedAmount-after-close-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/bufferedAmount-after-close.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/client-close-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/client-close.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/client-close_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-before-open-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-before-open.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-event-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-event.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-navigate-new-location-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-navigate-new-location.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload-and-force-gc-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload-and-force-gc.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload-reference-in-parent-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload-reference-in-parent.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-on-unload_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-unref-websocket-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/close-unref-websocket.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/cross-origin-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/cross-origin.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/echo-challenge_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/echo-cookie_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/echo-location_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/echo_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/error-detect-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/error-detect.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/fixed-origin_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-longer-than-buffer-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-longer-than-buffer.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-longer-than-buffer_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-overflow-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-overflow.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-overflow_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-skip-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-skip.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-length-skip_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-lengths-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/frame-lengths.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-challenge-randomness-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-challenge-randomness.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-error-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-error.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-error_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-cross-origin-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-cross-origin.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-maxlength-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-maxlength.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-maxlength_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-connection-header-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-connection-header.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-connection-header_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-cr-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-cr.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-cr_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-upgrade-header-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-upgrade-header.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-no-upgrade-header_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-prepended-null-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-prepended-null.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-prepended-null_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-sub-protocol-mismatch-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/handshake-fail-by-sub-protocol-mismatch.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/httponly-cookie-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/httponly-cookie.pl [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/long-invalid-header-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/long-invalid-header.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/long-invalid-header_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/multiple-connections-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/multiple-connections.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/no-query_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/null-character-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/null-character.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/origin-test_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/protocol-test_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/reload-crash-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/reload-crash.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/resources/close-on-unload-iframe-reference-in-parent.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/resources/close-on-unload-iframe.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/resources/reload-crash-iframe.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-after-close-on-unload-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-after-close-on-unload.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-empty-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-empty.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-object-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-object.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-throw-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send-throw.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send2_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/send_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/server-close-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/server-close.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/server-close_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/simple-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/simple-stress-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/simple-stress.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/simple.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/simple_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/split-binary-frame-header-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/split-binary-frame-header.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/split-binary-frame-header_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/sub-protocol-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/sub-protocol-with-space-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/sub-protocol-with-space.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/sub-protocol.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/undefined-attributes-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/undefined-attributes.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/unicode-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/unicode.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/unicode_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/unknown-frame-type_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-attribute-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-attribute.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-no-trailing-slash-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-no-trailing-slash.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-parsing-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-parsing.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-credential-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-credential.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-empty-query-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-empty-query.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-query-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-query-for-no-query-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-query-for-no-query.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/url-with-query.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-event-target-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-event-target.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-pending-activity-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-pending-activity.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-protocol-ignored-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/websocket-protocol-ignored.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-onmessage-crash-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-onmessage-crash.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-shared-worker-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-shared-worker.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-worker-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/close-in-worker.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/close-in-onmessage-crash.js [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/close-in-worker.js [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/echo-challenge_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/echo_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/simple_wsh.py [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/worker-handshake-challenge-randomness.js [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/resources/worker-simple.js [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/shared-worker-simple-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/shared-worker-simple.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/worker-handshake-challenge-randomness-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/worker-handshake-challenge-randomness.html [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/worker-simple-expected.txt [deleted file]
LayoutTests/http/tests/websocket/tests/hixie76/workers/worker-simple.html [deleted file]
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/win/Skipped
Source/WebCore/ChangeLog
Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.h
Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h
Source/WebCore/Modules/websockets/WebSocket.cpp
Source/WebCore/Modules/websockets/WebSocket.h
Source/WebCore/Modules/websockets/WebSocketChannel.cpp
Source/WebCore/Modules/websockets/WebSocketChannel.h
Source/WebCore/Modules/websockets/WebSocketHandshake.cpp
Source/WebCore/Modules/websockets/WebSocketHandshake.h
Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp
Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h