http://code.google.com/p/chromium/issues/detail?id=125509 If the index of the selected option is changed after <select> parsing, the selection is not restored correctly because we save the selection index. We need to save the value string for <select>.
Created attachment 148972 [details] Patch
Comment on attachment 148972 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148972&action=review > Source/WebCore/ChangeLog:36 > + Test: fast/forms/select/select-state-restore.html I hope we have another test which covers option element removal. > LayoutTests/fast/forms/select/select-state-restore.html:8 > +<p>Test to NOT save state for non-edited controls</p> Is this message intended?
Comment on attachment 148972 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148972&action=review >> Source/WebCore/ChangeLog:36 >> + Test: fast/forms/select/select-state-restore.html > > I hope we have another test which covers option element removal. ok, I'll update the test so that it covers removal. >> LayoutTests/fast/forms/select/select-state-restore.html:8 >> +<p>Test to NOT save state for non-edited controls</p> > > Is this message intended? Oh, it's a copypasta. I'll update it.
Created attachment 149218 [details] Patch 2
Created attachment 149219 [details] Patch 3 Remove TABs
Committed r121128: <http://trac.webkit.org/changeset/121128>
*** Bug 86855 has been marked as a duplicate of this bug. ***