Reviewed by Maciej.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 10:19:17 +0000 (10:19 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 10:19:17 +0000 (10:19 +0000)
commitdf3e0508cdf98deaead47e41fc21e1233e83e04e
tree40b21f79bd4511c3e4df20e6ea0db81dd8cc727c
parent9444dab7dfb6b3ee2acaef2619700fa43425c750
    Reviewed by Maciej.

        <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
        not closed (affects digg.com)

        Tests: fast/loader/meta-refresh-vs-open.html
               fast/loader/redirect-with-open-subframe-2.html
               fast/loader/redirect-with-open-subframe.html
               http/tests/loading/onload-vs-immediate-refresh.pl

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::scheduleRedirection): Only check whether the load is complete for
        HTTP redirects - JavaScript-initiated ones are effective immediately.

WebKitTools:
        * DumpRenderTree/mac/DumpRenderTree.mm: (runTest): Replace the current document with a blank
        one after finishing with a test to avoid having its delayed onload handler fired when
        starting the next test. This is ugly and still unreliable (see LayoutTests ChangeLog),
        but it helps somewhat.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/loader/meta-refresh-vs-open-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/meta-refresh-vs-open.html [new file with mode: 0644]
LayoutTests/fast/loader/redirect-with-open-subframe-2-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/redirect-with-open-subframe-2.html [new file with mode: 0644]
LayoutTests/fast/loader/redirect-with-open-subframe-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/redirect-with-open-subframe.html [new file with mode: 0644]
LayoutTests/http/tests/loading/onload-vs-immediate-refresh-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/onload-vs-immediate-refresh.pl [new file with mode: 0755]
LayoutTests/platform/mac/http/tests/loading/simple-subframe-expected.txt
WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm