2009-12-02 Fumitoshi Ukai <ukai@chromium.org>
authorukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Dec 2009 08:19:47 +0000 (08:19 +0000)
committerukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Dec 2009 08:19:47 +0000 (08:19 +0000)
commit4d23b39433bc66acd18693ccc4bfda6c6724eff7
tree6b49f87a93d9539c8c35b6883dd9f121af01c23f
parent08801573b10262f039206ff0df1775611cfbf908
2009-12-02  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        WebSocket handshake check query component of URL
        https://bugs.webkit.org/show_bug.cgi?id=31617

        * websocket/tests/echo-location_wsh.py: Added.
        * websocket/tests/no-query_wsh.py: Added.
        * websocket/tests/script-tests/url-with-credential.js: Added.
        * websocket/tests/script-tests/url-with-empty-query.js: Added.
        * websocket/tests/script-tests/url-with-fragment.js: Added.
        * websocket/tests/script-tests/url-with-query-for-no-query.js: Added.
        * websocket/tests/script-tests/url-with-query.js: Added.
        * websocket/tests/url-with-credential-expected.txt: Added.
        * websocket/tests/url-with-credential.html: Added.
        * websocket/tests/url-with-empty-query-expected.txt: Added.
        * websocket/tests/url-with-empty-query.html: Added.
        * websocket/tests/url-with-fragment-expected.txt: Added.
        * websocket/tests/url-with-fragment.html: Added.
        * websocket/tests/url-with-query-expected.txt: Added.
        * websocket/tests/url-with-query-for-no-query-expected.txt: Added.
        * websocket/tests/url-with-query-for-no-query.html: Added.
        * websocket/tests/url-with-query.html: Added.
2009-12-02  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        WebSocket handshake check query component of URL
        https://bugs.webkit.org/show_bug.cgi?id=31617

        Tests: websocket/tests/url-with-credential.html
               websocket/tests/url-with-empty-query.html
               websocket/tests/url-with-fragment.html
               websocket/tests/url-with-query-for-no-query.html
               websocket/tests/url-with-query.html

        * platform/KURLGoogle.cpp:
        (WebCore::KURL::query): returns a null if query is not specified and returns an empty if query is specified but empty.
        * websockets/WebSocketHandshake.cpp:
        (WebCore::resourceName): added. add query component to path if specified.
        (WebCore::WebSocketHandshake::clientLocation):
        (WebCore::WebSocketHandshake::clientHandshakeMessage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
LayoutTests/ChangeLog
LayoutTests/websocket/tests/echo-location_wsh.py [new file with mode: 0644]
LayoutTests/websocket/tests/no-query_wsh.py [new file with mode: 0644]
LayoutTests/websocket/tests/script-tests/url-with-credential.js [new file with mode: 0644]
LayoutTests/websocket/tests/script-tests/url-with-empty-query.js [new file with mode: 0644]
LayoutTests/websocket/tests/script-tests/url-with-fragment.js [new file with mode: 0644]
LayoutTests/websocket/tests/script-tests/url-with-query-for-no-query.js [new file with mode: 0644]
LayoutTests/websocket/tests/script-tests/url-with-query.js [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-credential-expected.txt [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-credential.html [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-empty-query-expected.txt [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-empty-query.html [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-fragment-expected.txt [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-fragment.html [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-query-expected.txt [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-query-for-no-query-expected.txt [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-query-for-no-query.html [new file with mode: 0644]
LayoutTests/websocket/tests/url-with-query.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/KURLGoogle.cpp
WebCore/websockets/WebSocketHandshake.cpp