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: http://svn.webkit.org/repository/webkit/trunk@48572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/loader/unload-window-location-expected.txt b/LayoutTests/fast/loader/unload-window-location-expected.txt
new file mode 100644
index 0000000..4c73526
--- /dev/null
+++ b/LayoutTests/fast/loader/unload-window-location-expected.txt
@@ -0,0 +1,2 @@
+main frame - has 1 onunload handler(s)
+PASS