[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
Fri Nov 27 06:45:16 PST 2009


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


Ben Murdoch <benm at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benm at google.com




--- Comment #3 from Ben Murdoch <benm at google.com>  2009-11-27 06:45:16 PST ---
I had a look at this on Android, and the problem seems to be when
TextAreaElement::restoreFormControlElementState is called when we navigate back
to the page. This resets the *default* value of the element to the state of the
form before the submit (using TextAreaElement::setDefaultValue), so when we
click reset, the default value to reset to matches the current state rather
than the default value stipulated by the HTML.

Setting breakpoints in Safari, it seems restoreFormControlElementState isn't
getting called because it's being pulled out of the cache and short circuiting
some code, whereas on Android we are triggering a new load. If after submitting
the form you clear Safari's cache and then go back, the bug surfaces and you
cannot reset the text area to it's default value of 123.

I think the fix therefore is to call setValue rather than setDefaultValue in
restoreFormControlElementState. I can send a patch for this.

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