[Webkit-unassigned] [Bug 37236] Cannot resubmit form after submission fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 11 15:41:53 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37236
--- Comment #9 from Joe Mason <jmason at rim.com> 2010-05-11 15:41:52 PST ---
Created an attachment (id=55765)
--> (https://bugs.webkit.org/attachment.cgi?id=55765)
Attempt at layout test (not working)
Still unable to make a layout test for this. I've attached my best attempt. However, this code fails because after submitting a form with document.form.submit, the result replaces the current document even if it's an error code with no body.
This confuses me because it's not what happens when I run QtLauncher by hand, after editing WebPage::supportsExtension to turn off the ErrorPageExtension. And LayoutTestControllerQt contains "m_handleErrorPages = false", so I think error pages are turned off for it as well. So the error 500 I'm returning shouldn't cause a new page load - but it does. After submitting postForm1, the output to the initial document ("Submitting postForm1"), "Waiting for postForm1") is cleared, and the final result is:
CONSOLE MESSAGE: line 68: TypeError: Result of expression 'form' [undefined] is not an object.
FAIL: Timed out waiting for notifyDone to be called
Got response: submitted=value1
Which tells me that it's gotten the response fine and gone on to submit the second form, which fails because "document.postForm2" is no longer an existing element: the document's been overwritten.
If anyone can help me get around this final hurdle I think this layout test will work.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list