Bug 94739

Summary: Changing innerHTML removes selection when right clicking on an editable region
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, darin, enrica, leviw, ojan
Priority: P2 Keywords: NeedsReduction
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2012-08-22 11:54:50 PDT
Reproduction steps: 1. Go to http://jsfiddle.net/ruBxs/10/ 2. Right click on "edit me..." (it needs to be on the text) 3. Observe that the caret is not placed in the editable element when you close the context menu.
Attachments
Ojan Vafai
Comment 1 2012-08-22 12:04:35 PDT
On which platforms? This is affected by EditingBehavior, bool shouldSelectOnContextualMenuClick() const { return m_type == EditingMacBehavior; }.
Ojan Vafai
Comment 2 2012-08-22 12:05:33 PDT
Or is this cross-platform?
Ryosuke Niwa
Comment 3 2012-08-22 12:07:07 PDT
(In reply to comment #2) > Or is this cross-platform? It reproduces on Mac at least. Not sure about other platforms.
Ojan Vafai
Comment 4 2012-08-22 12:09:22 PDT
Works for me on Chromium Linux dev channel.
Ryosuke Niwa
Comment 5 2013-02-03 14:05:21 PST
It works on nightly build of webkit as well.
Note You need to log in before you can comment on or make changes to this bug.