NEW 187605
REGRESSION (-r226018): Shift-clicking to extend selection extends it from both ends if granularity is not character
https://bugs.webkit.org/show_bug.cgi?id=187605
Summary REGRESSION (-r226018): Shift-clicking to extend selection extends it from bot...
mitz
Reported 2018-07-12 10:02:10 PDT
To reproduce this bug, navigate to the URL, then triple-click the word “four”. Then Shift-click in the word “two”, then Shift-click in the word “one”. The selection extends to the words “five” and “six”, but it shouldn’t.
Attachments
Radar WebKit Bug Importer
Comment 1 2018-07-12 10:07:30 PDT
mitz
Comment 2 2018-07-12 19:34:14 PDT
I can reproduce this with r233395 in macOS High Sierra 10.13.6.
mitz
Comment 3 2018-07-12 19:44:48 PDT
It also reproduces with built-in Safari in that version of macOS, so it’s not a particularly recent regression.
mitz
Comment 4 2018-07-12 19:55:00 PDT
I was able to reproduce this all the way back to r226018
Wenson Hsieh
Comment 5 2018-07-12 20:15:24 PDT
Oddly, I'm unable to reproduce this on 10.13.4 (I tried both system Safari and STP 60).
mitz
Comment 6 2018-07-12 20:21:14 PDT
This comes down to the behavior of VisibleSelection::expandUsingGranularity, which makes it at least somewhat related to bug 164519.
mitz
Comment 7 2018-07-12 20:24:19 PDT
I wonder if there’s some extra global setting or preference that affects this (something like “smart copy and paste”).
Note You need to log in before you can comment on or make changes to this bug.