WebCore:
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2007 22:06:50 +0000 (22:06 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2007 22:06:50 +0000 (22:06 +0000)
commite2fdfc63113158cee3fbea019de74daa99051276
treee5716e827f30ca65e7fcb699acdfdd09c607be35
parent35eebd8a95727222e0b6da5704174651f915d898
WebCore:

        Reviewed by Brady.

        Make document.open count as committing a document load, so that -[WebFrame dataSource:] won't
        return nil in that case.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::didExplicitOpen):

WebKitTools:

        Reviewed by Brady.

        Assert that a web frame that's loading a resource always has either a data source or
        a provisional data source.

        * DumpRenderTree/mac/ResourceLoadDelegate.mm:
        (-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):

LayoutTests:

        Reviewed by Brady.

        Add test that calls window.open and then immediately writes into the document
        of the newly opened window.

        * http/tests/misc/resources/compass.jpg: Added.
        * http/tests/misc/window-open-then-write-expected.txt: Added.
        * http/tests/misc/window-open-then-write.html: Added.
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/resources/compass.jpg [new file with mode: 0644]
LayoutTests/http/tests/misc/window-open-then-write-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/window-open-then-write.html [new file with mode: 0644]
LayoutTests/platform/win/Skipped
WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/mac/ResourceLoadDelegate.mm