2009-12-19 Fumitoshi Ukai <ukai@chromium.org>
authorukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Dec 2009 03:30:14 +0000 (03:30 +0000)
committerukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Dec 2009 03:30:14 +0000 (03:30 +0000)
commit311f48da172ab0a5fde81a9fbb0e3c4f4a11a9d6
tree57eee734d0c6b871891ece835bf877995bcb8af0
parent42137e28d4a0cb9f3b84fbcb75613b3b76a3a8fe
2009-12-19  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Invalid url should raise SYNTAX_ERR exception.
        https://bugs.wbekit.org/show_bug.cgi?id=32700

        * websocket/tests/bad-sub-protocol-expected.txt: add CONSOLE MESSAGEs
        * websocket/tests/script-tests/url-parsing.js: add invalid url tests.
          Also changed url from ws://127.0.0.1/ to ws://127.0.0.1:8880/websocket/tests/simple to make it sure no errors on console message for these tests by not receiving unexpected response from 127.0.0.1:80.
        * websocket/tests/url-parsing-expected.txt:
2009-12-19  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Invalid url should raise SYNTAX_ERR exception.
        https://bugs.webkit.org/show_bug.cgi?id=32700

        Check url is valid in WebSocket::connect.
        Also log the detailed reason of websocket failures to console.

        * websockets/WebSocket.cpp:
        (WebCore::WebSocket::connect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@52399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/websocket/tests/bad-sub-protocol-expected.txt
LayoutTests/websocket/tests/script-tests/url-parsing.js
LayoutTests/websocket/tests/url-parsing-expected.txt
WebCore/ChangeLog
WebCore/websockets/WebSocket.cpp