[Webkit-unassigned] [Bug 38703] New: user-select none should not clear selection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 6 16:04:18 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38703
Summary: user-select none should not clear selection
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
Created an attachment (id=55315)
--> (https://bugs.webkit.org/attachment.cgi?id=55315)
Test
If I have some selected text and then do a mousedown on an element that has
user-select none the current selection should not be cleared.
The code to fix this is in Node::canStartSelection.
if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_NONE)
should be changed to
if (style->userDrag() == DRAG_ELEMENT || style->userSelect() == SELECT_NONE)
The following two LayoutTests needs to be updated as well:
editing/selection/5333725.html
editing/selection/user-drag-element-and-user-select-none.html
--
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