2011-03-28 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Mar 2011 09:33:59 +0000 (09:33 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Mar 2011 09:33:59 +0000 (09:33 +0000)
commit052a0f9faf711584269fe823b47f344ba34204d7
tree0a94621d766739de608f573feb72e657ad480bff
parentab39e3150399b87ca03952d2a1a02464f641ec47
2011-03-28  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dan Bernstein.

        Assigning location.path to something that doesn't start with / mangles the authority
        https://bugs.webkit.org/show_bug.cgi?id=57209
        <rdar://problem/9195132>

        Tests: http/tests/uri/assign-path-with-leading-slash.html
               http/tests/uri/assign-path-without-leading-slash.html

        * platform/KURL.cpp:
        (WebCore::KURL::setPath): If the new path does not have a leading slash, add one.
2011-03-28  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dan Bernstein.

        Assigning location.path to something that doesn't start with / mangles the authority
        https://bugs.webkit.org/show_bug.cgi?id=57209
        <rdar://problem/9195132>

        * http/tests/uri/assign-path-with-leading-slash-expected.txt: Added.
        * http/tests/uri/assign-path-with-leading-slash.html: Added.
        * http/tests/uri/assign-path-without-leading-slash-expected.txt: Added.
        * http/tests/uri/assign-path-without-leading-slash.html: Added.
        * http/tests/uri/resources/assign-path-landing.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/uri/assign-path-with-leading-slash-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/uri/assign-path-with-leading-slash.html [new file with mode: 0644]
LayoutTests/http/tests/uri/assign-path-without-leading-slash-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/uri/assign-path-without-leading-slash.html [new file with mode: 0644]
LayoutTests/http/tests/uri/resources/assign-path-landing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/KURL.cpp