WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
94739
Changing innerHTML removes selection when right clicking on an editable region
https://bugs.webkit.org/show_bug.cgi?id=94739
Summary
Changing innerHTML removes selection when right clicking on an editable region
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug