2009-09-20 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2009 02:30:12 +0000 (02:30 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2009 02:30:12 +0000 (02:30 +0000)
commitcf4c79fce584a55f0a392e271c247697c1628b26
treee05e262b413a04a747b7935c16b8cd9ef8c7b4e5
parentf4e896811eb09c98ea275415de7f4465a50c4ee3
2009-09-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        Crash when clicking link in unload handler
        https://bugs.webkit.org/show_bug.cgi?id=29525

        Test that the first navigation always wins when the page tries to start
        a new navigation in an unload handler.

        * fast/loader/resources/fail-and-notify-done.html: Added.
        * fast/loader/resources/pass-and-notify-done.html: Added.
        * fast/loader/unload-form-about-blank-expected.txt: Added.
        * fast/loader/unload-form-about-blank.html: Added.
        * fast/loader/unload-form-expected.txt: Added.
        * fast/loader/unload-form-post-about-blank-expected.txt: Added.
        * fast/loader/unload-form-post-about-blank.html: Added.
        * fast/loader/unload-form-post-expected.txt: Added.
        * fast/loader/unload-form-post.html: Added.
        * fast/loader/unload-form.html: Added.
        * fast/loader/unload-hyperlink-expected.txt: Added.
        * fast/loader/unload-hyperlink.html: Added.
        * fast/loader/unload-javascript-url-expected.txt: Added.
        * fast/loader/unload-javascript-url.html: Added.
        * fast/loader/unload-reload-expected.txt: Added.
        * fast/loader/unload-reload.html: Added.
        * fast/loader/unload-window-location-expected.txt: Added.
        * fast/loader/unload-window-location.html: Added.
2009-09-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        Crash when clicking link in unload handler
        https://bugs.webkit.org/show_bug.cgi?id=29525

        Test that the first navigation always wins when the page tries to start
        a new navigation in an unload handler.

        Tests: fast/loader/unload-form-about-blank.html
               fast/loader/unload-form-post-about-blank.html
               fast/loader/unload-form-post.html
               fast/loader/unload-form.html
               fast/loader/unload-hyperlink.html
               fast/loader/unload-javascript-url.html
               fast/loader/unload-reload.html
               fast/loader/unload-window-location.html

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::loadURL):
        (WebCore::FrameLoader::loadWithDocumentLoader):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/loader/resources/fail-and-notify-done.html [new file with mode: 0644]
LayoutTests/fast/loader/resources/pass-and-notify-done.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-about-blank-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-about-blank.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-post-about-blank-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-post-about-blank.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-post-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-form-post.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-form.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-hyperlink-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-hyperlink.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-javascript-url-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-javascript-url.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-reload-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-reload.html [new file with mode: 0644]
LayoutTests/fast/loader/unload-window-location-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/unload-window-location.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp