Bug 168821

Summary: REGRESSION (r211312): Double-clicking a word selects it along with the space that follows it
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, mitz, mmaxfield, thorton, webkit-bug-importer, wenson_hsieh
Priority: P1 Keywords: InRadar, Regression
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
thorton: review+, commit-queue: commit-queue-
Patch for landing none

Description mitz 2017-02-23 21:19:28 PST
To reproduce this bug, double-click the second word in this sentence. Only the word should be selected, but instead, the word is selected along with the space that follows it.
Comment 1 mitz 2017-02-24 10:17:01 PST
<rdar://problem/30690431>

Caused by <https://trac.webkit.org/r211312>, the fix for bug 167530.
Comment 2 mitz 2017-02-24 14:39:36 PST
Wenson Hsieh found the problem: “adding smartInsertDeleteEnabled to WebPageCreationParameters::encode and WebPageCreationParameters::decode fixes the  problem for me”.
Comment 3 Wenson Hsieh 2017-02-25 02:11:43 PST
Created attachment 302756 [details]
Patch
Comment 4 Wenson Hsieh 2017-02-26 14:21:47 PST
Comment on attachment 302756 [details]
Patch

Thanks Tim!
Comment 5 WebKit Commit Bot 2017-02-26 14:23:40 PST
Comment on attachment 302756 [details]
Patch

Rejecting attachment 302756 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 302756, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
s/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj.rej
patching file Tools/TestWebKitAPI/Tests/WebKit2Cocoa/double-click-does-not-select-trailing-space.html
patching file Tools/TestWebKitAPI/Tests/mac/WKWebViewSelectionTests.mm
patching file Tools/TestWebKitAPI/cocoa/TestWKWebView.h
patching file Tools/TestWebKitAPI/cocoa/TestWKWebView.mm

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Tim Horton']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/3198114
Comment 6 Wenson Hsieh 2017-02-26 14:28:48 PST
Created attachment 302791 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2017-02-26 15:08:45 PST
Comment on attachment 302791 [details]
Patch for landing

Clearing flags on attachment: 302791

Committed r213012: <http://trac.webkit.org/changeset/213012>