See the attached test case.
Created attachment 62086 [details] test case
In fact, there's a FIXME in Element::updateFocusAppearance that we should restore the previous selection if there is one.
Created attachment 62107 [details] Patch
Created attachment 62126 [details] Update to ToT
Comment on attachment 62126 [details] Update to ToT WebCore/dom/Element.cpp: + if (!frame) Split this out into a separate if, and add a comment as to why we're making this check (what it's supposed to do).
Created attachment 63251 [details] Patch
Committed r64489: <http://trac.webkit.org/changeset/64489>