Commit 08a32007 authored by ap's avatar ap
Browse files

Reviewed by Maciej and Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=4372
        JavaScript document.write page form does not submit in Safari

        Test: fast/forms/document-write.html

        * page/Frame.cpp:
        (WebCore::Frame::submitForm): Don't check for parsing().



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 17258d39
2006-10-01 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Maciej and Darin.
Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4372
JavaScript document.write page form does not submit in Safari
* fast/forms/document-write-expected.txt: Added.
* fast/forms/document-write.html: Added.
2006-09-30 Alexey Proskuryakov <ap@nypop.com>
 
Reviewed by Darin.
Test for bug 4372: JavaScript document.write page form does not submit in Safari if document.close is not called.
SUCCESS
<html>
<head>
<script>
function test() {
if (document.URL.indexOf('?') == -1) {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
document.write("<html><body>" +
"<form name='f' action='?' method='post'>" +
"<input type=submit></form><scri" +
"pt>document.f.submit();</scri" +
"pt></body></html>");
} else {
document.getElementById("result").innerHTML="SUCCESS";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
}
</script>
</head>
<body onload="test()">
<p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=4372">bug 4372</a>:
JavaScript document.write page form does not submit in Safari if document.close is not called.</p>
<p id=result>FAILURE</p>
</body>
</html>
2006-10-01 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Maciej and Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=4372
JavaScript document.write page form does not submit in Safari
Test: fast/forms/document-write.html
* page/Frame.cpp:
(WebCore::Frame::submitForm): Don't check for parsing().
2006-10-01 Alexey Proskuryakov <ap@nypop.com>
 
Build fix.
......@@ -1664,7 +1664,7 @@ void Frame::submitForm(const char *action, const String& url, const FormData& fo
request.setContentType("Content-Type: " + contentType + "; boundary=" + boundary);
}
if (d->m_doc->parsing() || d->m_runningScripts > 0) {
if (d->m_runningScripts > 0) {
if (d->m_submitForm)
return;
d->m_submitForm = new FramePrivate::SubmitForm;
......
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