After http://trac.webkit.org/changeset/94274, WebKit sets focus on an input element when setting the value attribute of the element if the element has a selection in its inner text element. http://b/issue?id=5362152
Created attachment 109577 [details] manual test I've spent last 1.5 hours trying to create a reproduction without a success. It seems like I'd have to create a manual test here :(
Created attachment 109578 [details] Patch
Comment on attachment 109578 [details] Patch The change looks good, but why did r94274 make the problem?
(In reply to comment #3) > (From update of attachment 109578 [details]) > The change looks good, but why did r94274 make the problem? r94274 added a call to updateInnerTextValue in setValue. We used to update the inner text value in updateFromElement so this had never been an issue (although we may had a use-after-free back then).
Comment on attachment 109578 [details] Patch ok, I understand.
I have just remembered Bug 59071. I can remove the change for Bug 59071 when this patch is landed.
Committed r96628: <http://trac.webkit.org/changeset/96628>