[Webkit-unassigned] [Bug 37236] Cannot resubmit form after submission fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 9 12:06:25 PDT 2010


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





--- Comment #7 from Joe Mason <jmason at rim.com>  2010-04-09 12:06:24 PST ---
The problem I'm having in creating an automated test is in deciding when to
send the second submit.

It's easy to call form.submit on first load.  However:

- if we call form.submit again immediately, before
FrameLoader::receivedMainResourceError has been called, m_submittedFormURL has
not yet been reset so nothing happens - correctly, in this case
- we can't put an onload handler to submit again after the frame reloads,
because it *doesn't* reload - we're testing an error condition
- we can't use an onerror handler as we would to test failure to load an image,
because this has no meaning for forms
- we can't set the submit target to another frame and then watch the frame
contents for an error message, because this bypasses the isDescendentOf check

The only thing I can think to do is to set a timeout after the first submit,
and send the second submit after a reasonable time.  I can do that, I was just
hoping somebody had a better suggestion

-- 
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