Bug 208682

Summary: Drag from a -webkit-user-select:none element should not start selection
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: benoit.rouleau, cdumez, esprehn+autocc, ews-watchlist, haizhang, kangil.han, megan_gardner, ntim, rniwa, timdream, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 208677    
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Carlos Alberto Lopez Perez
Reported 2020-03-05 17:26:15 PST
The spec <https://www.w3.org/TR/css-ui-4/#propdef-user-select> is clear in this respect: none The UA must not allow selections to be started in this element. So, as a fix to this consider merging chromium patch: https://chromium.googlesource.com/chromium/src/+/f6dcdcf4917ba56f5576ef7d5d11d869630d2760 Test case from https://bugs.chromium.org/p/chromium/issues/detail?id=481985 > Open http://jsbin.com/zufeva/1/ > Start dragging on the first box (-webkit-user-select:none) and drag into the second (no -webkit-user-select). > IE and Firefox appear to implement their user-select variants differently where it controls whether selection can be STARTED. So there, if you start in the first box, you won't select text anywhere.
Attachments
Patch (1.75 KB, patch)
2022-04-19 11:06 PDT, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Carlos Alberto Lopez Perez
Comment 1 2020-03-05 19:29:57 PST
(In reply to Carlos Alberto Lopez Perez from comment #0) > > So, as a fix to this consider merging chromium patch: > https://chromium.googlesource.com/chromium/src/+/ > f6dcdcf4917ba56f5576ef7d5d11d869630d2760 > This fix can't be merged as such. It causes issues on the web-inspector, the text on the console becomes non selectable. The same happened on chromium after merging it (it was reverted later). See: https://bugs.chromium.org/p/chromium/issues/detail?id=615227
Radar WebKit Bug Importer
Comment 2 2022-04-19 06:11:45 PDT
Tim Nguyen (:ntim)
Comment 3 2022-04-19 11:06:43 PDT
Tim Nguyen (:ntim)
Comment 4 2022-04-19 11:07:09 PDT
The Web inspector issue is still reproducible.
Tim Nguyen (:ntim)
Comment 5 2022-04-19 11:07:51 PDT
STR for the WI issue: 1) Open DevTools, open Console 2) "window" and press enter 3) Try to select the logged text by clicking and dragging
Tim Nguyen (:ntim)
Comment 7 2025-05-30 15:58:58 PDT
*** Bug 293829 has been marked as a duplicate of this bug. ***
Tim Nguyen (:ntim)
Comment 8 2025-05-30 16:25:00 PDT
*** Bug 123464 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.