Commit 3df3d082 authored by rniwa@webkit.org's avatar rniwa@webkit.org

Fix race in fast/loader/onunload-form-submit-crash.html

https://bugs.webkit.org/show_bug.cgi?id=121122

Reviewed by Alexey Proskuryakov.

Merge https://chromium.googlesource.com/chromium/blink/+/c7ab0900c147f9a2f4c69d62b6460f98abc5d796

The setTimeout was sometimes firing before the form was parsed, so document.myForm would be null.

* fast/loader/onunload-form-submit-crash.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cbeb7656
2013-09-10 Ryosuke Niwa <rniwa@webkit.org>
Fix race in fast/loader/onunload-form-submit-crash.html
https://bugs.webkit.org/show_bug.cgi?id=121122
Reviewed by Alexey Proskuryakov.
Merge https://chromium.googlesource.com/chromium/blink/+/c7ab0900c147f9a2f4c69d62b6460f98abc5d796
The setTimeout was sometimes firing before the form was parsed, so document.myForm would be null.
* fast/loader/onunload-form-submit-crash.html:
2013-09-10 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: [JSC] Caught exception is treated as uncaught
<html>
<body onUnload="document.myForm.submit()">
<p>This is just a dummy page that loads the next page to see if we crash.</p>
<form name="myForm" action="resources/onunload-form-submit-crash2.html"></form>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
......@@ -8,7 +10,5 @@
window.setTimeout("location.href='resources/onunload-form-submit-success.html'", 0);
</script>
<p>This is just a dummy page that loads the next page to see if we crash.</p>
<form name="myForm" action="resources/onunload-form-submit-crash2.html"></form>
</body>
<html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment