[Webkit-unassigned] [Bug 31539] Form Reset : Press Back Button and Reset , TextareaElemnt is not set to Default Value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 1 08:29:17 PST 2009


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





--- Comment #6 from Ben Murdoch <benm at google.com>  2009-12-01 08:29:17 PST ---
I have written  a reduced test case that exposes the bug on Safari which is
perfect for the layout test. However, I'm having trouble getting the test to
execute automatically. If you open the test page and manually click the
'submit' button on the form in the iframe, then the test will expose the bug.
When I try to automate this by programattically clicking the button, the test
does not run correctly. I think I've tracked the problem down to the fact that
it seems that for events from script that trigger navigation, no history items
are created and so the call to history.back() in the form handler fails.

I will attach the test as I have it right now; does any one have any advice as
to how I could fully automate it? I've tried using the eventSender object in
DRT, calling the submit button's click() method, instantiating an Event object
and dispatching it to the submit button, altering location.hash to try and
create history entries, calling the submit() function on the form itself, but
nothing seems to work...

The fix for the bug is a very simple one line change in
HTMLTextAreaElement.cpp.

Thanks, Ben

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