Changeset 27986 in webkit


Ignore:
Timestamp:
Nov 23, 2007, 2:19:17 AM (18 years ago)
Author:
ap@webkit.org
Message:

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.
Location:
trunk
Files:
8 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r27985 r27986  
     12007-11-23  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Maciej.
     4
     5        <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
     6        not closed (affects digg.com)
     7
     8        * fast/loader/meta-refresh-vs-open-expected.txt: Added.
     9        * fast/loader/meta-refresh-vs-open.html: Added.
     10        Test that HTTP refresh never fires if the document stays open indefinitely.
     11
     12        * fast/loader/redirect-with-open-subframe-expected.txt: Added.
     13        * fast/loader/redirect-with-open-subframe.html: Added.
     14        * fast/loader/redirect-with-open-subframe-2-expected.txt: Added.
     15        * fast/loader/redirect-with-open-subframe-2.html: Added.
     16        Test that setting window.location has effect even if the document is open.
     17
     18        * http/tests/loading/onload-vs-immediate-refresh-expected.txt: Added.
     19        * http/tests/loading/onload-vs-immediate-refresh.pl: Added.
     20        Test for <rdar://3829452> - HTTP redirect should only happen after onload fires.
     21
     22        * platform/mac/http/tests/loading/simple-subframe-expected.txt:
     23        It seems that there was a line spilled from the previous test that is now in
     24        onload-vs-immediate-refresh-expected.txt - despite my efforts, I couldn't get rid of it.
     25
    1262007-11-23  Dan Bernstein  <mitz@apple.com>
    227
  • trunk/LayoutTests/platform/mac/http/tests/loading/simple-subframe-expected.txt

    r25970 r27986  
    11main frame - didStartProvisionalLoadForFrame
    2 frame "f1" - willCloseFrame
    32main frame - willCloseFrame
    43main frame - didCommitLoadForFrame
  • trunk/WebCore/ChangeLog

    r27985 r27986  
     12007-11-23  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Maciej.
     4
     5        <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
     6        not closed (affects digg.com)
     7
     8        Tests: fast/loader/meta-refresh-vs-open.html
     9               fast/loader/redirect-with-open-subframe-2.html
     10               fast/loader/redirect-with-open-subframe.html
     11               http/tests/loading/onload-vs-immediate-refresh.pl
     12
     13        * loader/FrameLoader.cpp:
     14        (WebCore::FrameLoader::scheduleRedirection): Only check whether the load is complete for
     15        HTTP redirects - JavaScript-initiated ones are effective immediately.
     16
    1172007-11-23  Dan Bernstein  <mitz@apple.com>
    218
  • trunk/WebCore/loader/FrameLoader.cpp

    r27760 r27986  
    18091809    stopRedirectionTimer();
    18101810    m_scheduledRedirection.set(redirection);
    1811     if (m_isComplete)
     1811    if (!m_isComplete && redirection->type != ScheduledRedirection::redirection)
     1812        completed();
     1813    if (m_isComplete || redirection->type != ScheduledRedirection::redirection)
    18121814        startRedirectionTimer();
    18131815}
  • trunk/WebKitTools/ChangeLog

    r27975 r27986  
     12007-11-23  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Maciej.
     4
     5        <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
     6        not closed (affects digg.com)
     7
     8        * DumpRenderTree/mac/DumpRenderTree.mm: (runTest): Replace the current document with a blank
     9        one after finishing with a test to avoid having its delayed onload handler firing when
     10        replaced with the next one. This is ugly and still unreliable (see LayoutTests ChangeLog),
     11        but it helps somewhat.
     12
    1132007-11-22  Mark Rowe  <mrowe@apple.com>
    214
  • trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm

    r27971 r27986  
    875875    }
    876876   
     877    [mainFrame loadHTMLString:@"<html></html>" baseURL:[NSURL URLWithString:@"about:blank"]];
     878    [mainFrame stopLoading];
     879   
    877880    [pool release];
    878881
Note: See TracChangeset for help on using the changeset viewer.