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