WebCore:
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jun 2008 04:37:49 +0000 (04:37 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jun 2008 04:37:49 +0000 (04:37 +0000)
commit89c75f8320ec66f969d6d73bd779f33c18d67b57
tree19882bc8189c3fb901f7fe6146a4ba34bfa926d1
parenta375eadee827e2157fe209076d406f87214d8341
WebCore:

2008-06-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Inherit document.URL from parent's document.URL, not document.baseURI.

        https://bugs.webkit.org/show_bug.cgi?id=19257

        Tests: http/tests/security/cookies/assign-document-url.html
               http/tests/security/cookies/base-about-blank.html
               http/tests/security/cookies/base-tag.html
               http/tests/security/cookies/basic.html

        * dom/Document.cpp:
        (WebCore::Document::open):

LayoutTests:

2008-06-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Alder.

        Add a number of tests for document.cookie access.

        https://bugs.webkit.org/show_bug.cgi?id=19257

        * http/tests/security/cookies: Added.
        * http/tests/security/cookies/assign-document-url-expected.txt: Added.
        * http/tests/security/cookies/assign-document-url.html: Added.
        * http/tests/security/cookies/base-about-blank-expected.txt: Added.
        * http/tests/security/cookies/base-about-blank.html: Added.
        * http/tests/security/cookies/base-tag-expected.txt: Added.
        * http/tests/security/cookies/base-tag.html: Added.
        * http/tests/security/cookies/basic-expected.txt: Added.
        * http/tests/security/cookies/basic.html: Added.
        * http/tests/security/cookies/resources: Added.
        * http/tests/security/cookies/resources/set-a-cookie.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/security/cookies/assign-document-url-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/assign-document-url.html [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/base-about-blank-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/base-about-blank.html [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/base-tag-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/base-tag.html [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/basic-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/basic.html [new file with mode: 0644]
LayoutTests/http/tests/security/cookies/resources/set-a-cookie.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp