Bug 94739
Summary: | Changing innerHTML removes selection when right clicking on an editable region | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | HTML Editing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ojan Vafai
On which platforms? This is affected by EditingBehavior, bool shouldSelectOnContextualMenuClick() const { return m_type == EditingMacBehavior; }.
Ojan Vafai
Or is this cross-platform?
Ryosuke Niwa
(In reply to comment #2)
> Or is this cross-platform?
It reproduces on Mac at least. Not sure about other platforms.
Ojan Vafai
Works for me on Chromium Linux dev channel.
Ryosuke Niwa
It works on nightly build of webkit as well.