[Webkit-unassigned] [Bug 38696] New: Unfocused contenteditable element still receives keyboard events and gets modified
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 6 14:49:32 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38696
Summary: Unfocused contenteditable element still receives
keyboard events and gets modified
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Keywords: HasReduction
Severity: Major
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: ojan at chromium.org
Created an attachment (id=55301)
--> (https://bugs.webkit.org/attachment.cgi?id=55301)
Test case
Given an element that has contentEditable. Focus it and select some text. Now
click on something else that does not start a new selection
(Node::canStartSelection is false). The selection is kept which is fine,
however, now press a key on your keyboard. The contentEditable element steals
the focus and modifies its content.
The same problem exists for input and textareas but there is a workaround in
the code to always collapse their selection in
FocusController::clearSelectionIfNeeded.
See test case for clearer repro steps.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list