WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
208682
Drag from a -webkit-user-select:none element should not start selection
https://bugs.webkit.org/show_bug.cgi?id=208682
Summary
Drag from a -webkit-user-select:none element should not start selection
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-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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
<
rdar://problem/91955574
>
Tim Nguyen (:ntim)
Comment 3
2022-04-19 11:06:43 PDT
Created
attachment 457916
[details]
Patch
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 6
2023-01-17 03:04:54 PST
This was the Chromium change that ended up getting merged:
https://chromium-review.googlesource.com/c/chromium/src/+/570246/16/third_party/WebKit/Source/core/dom/Node.cpp
along with:
https://chromium.googlesource.com/chromium/src.git/+/d541129f1b272eb3e611b59b5e12dd0be0a4ba58
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