Bug 187989

Summary: [macOS] Double-click to select word also selects the following space when "Smart Copy/Paste" is off
Product: WebKit Reporter: mitz
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, joshuawalker, megan_gardner, mmaxfield, opendarwin, rniwa, simon.fraser, thorton, webkit-bug-importer, webkit, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Video of toggling a flag to stop bug behavior none

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.