Bug 187989 - [macOS] Double-click to select word also selects the following space when "Smart Copy/Paste" is off
Summary: [macOS] Double-click to select word also selects the following space when "Sm...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-24 23:46 PDT by mitz
Modified: 2023-07-26 19:37 PDT (History)
12 users (show)

See Also:


Attachments
Video of toggling a flag to stop bug behavior (12.23 MB, video/quicktime)
2021-04-28 16:10 PDT, joshuawalker
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2018-07-24 23:46:27 PDT
<rdar://problem/14119118>

When Smart Copy/Paste is off, double-clicking a word, whether in editable or non-editable text, also selects the following space. The space should not get selected along with the word regardless of whether Smart Copy/Paste is on or not.
Comment 1 joshuawalker 2021-04-28 15:51:55 PDT
If it helps with figuring this one out, it seems that toggling one of the flags in the Debug > Drawing/Compositing Flags menu (e.g. "Enable/Disable Subpixel-Antialiased Layer Text") will stop this behavior. Some of the flags seem to only work on a per-tab basis, others per-window.
Comment 2 Simon Fraser (smfr) 2021-04-28 15:59:10 PDT
I'd be very surprised if "Enable/Disable Subpixel-Antialiased Layer Text" affected this.
Comment 3 joshuawalker 2021-04-28 16:10:32 PDT
Created attachment 427303 [details]
Video of toggling a flag to stop bug behavior

Safari 14.1 (15611.1.21.161.5, 15611) on macOS 10.15.7 (19H1030)
Comment 4 Tim Horton 2021-04-28 16:16:12 PDT
Flipping *any* pref seems to do the trick.
Comment 5 Jeff Johnson 2023-07-26 19:37:42 PDT
This bug also affects Mac Mail app, which uses WebKit for editing.