RESOLVED FIXED 42646
focusing an unfocused contentEditable element should place the cursor at the beginning
https://bugs.webkit.org/show_bug.cgi?id=42646
Summary focusing an unfocused contentEditable element should place the cursor at the ...
Ojan Vafai
Reported Tuesday, July 20, 2010 5:58:49 PM UTC
Created attachment 62087 [details] test case Right now it selected the contents of the element. See test case.
Attachments
test case (213 bytes, text/html)
2010-07-20 09:58 PDT, Ojan Vafai
no flags
Patch (89.65 KB, patch)
2010-07-20 11:25 PDT, Ojan Vafai
eric: review+
Ojan Vafai
Comment 1 Tuesday, July 20, 2010 6:40:17 PM UTC
Looks this the body focus case was fixed at http://trac.webkit.org/changeset/14666, but all cases should be doing this though. I don't see when selecting all the node's contents is ever correct. We should either put the cursor at the beginning, or restore the previous selection (as per the FIXME in Element::updateFocusAppearance. I'm running a patch through the layout tests now.
Ojan Vafai
Comment 2 Tuesday, July 20, 2010 7:25:28 PM UTC
Eric Seidel (no email)
Comment 3 Monday, August 2, 2010 8:10:33 PM UTC
Comment on attachment 62094 [details] Patch This looks sane. I think you're rebaselining some image results you might not need to.
Ojan Vafai
Comment 4 Monday, August 2, 2010 9:46:29 PM UTC
WebKit Review Bot
Comment 5 Monday, August 2, 2010 10:04:53 PM UTC
http://trac.webkit.org/changeset/64488 might have broken Qt Linux Release
Note You need to log in before you can comment on or make changes to this bug.