LayoutTests:
authoraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Aug 2006 20:43:36 +0000 (20:43 +0000)
committeraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Aug 2006 20:43:36 +0000 (20:43 +0000)
commit6c0fa375fd95c07ef9cd063118498fd2bfcacedc
treee49b6765bfd3d596aee3763887cbd4175eb27ca0
parent607362327cf11b7dce9ac2588b8850ed91996e99
LayoutTests:

        Reviewed by Geoff.

       Added tests for <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write

        * http/tests/misc/iframe-domain-test-expected.txt: Added.
        * http/tests/misc/iframe-domain-test.html: Added.

WebCore:

        Reviewed by Geoff.

        Fixed <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write

        * dom/Document.cpp:
        (WebCore::Document::open):
        set the document's url to the parent's url and re-located the code that does this to occur before calling the frame's didExplicitOpen()
        * page/Frame.cpp:
        (WebCore::Frame::didExplicitOpen):
        set the frame's url to the document's url

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/iframe-domain-test-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/iframe-domain-test.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/page/Frame.cpp