Bug 210191 - [iOS] Unable to select text by tap-hold or double tap-hold when allowsLinkPreview property is set to NO
Summary: [iOS] Unable to select text by tap-hold or double tap-hold when allowsLinkPre...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 13
Hardware: iPhone / iPad iOS 13
: P2 Critical
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
: 212299 213247 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-08 09:48 PDT by Mohan
Modified: 2022-02-12 21:00 PST (History)
7 users (show)

See Also:


Attachments
Sample Project (46.59 KB, application/zip)
2020-04-08 09:48 PDT, Mohan
no flags Details
Patch (8.88 KB, patch)
2020-04-10 11:38 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mohan 2020-04-08 09:48:20 PDT
Created attachment 395822 [details]
Sample Project

Unable to select text rendered in WKWebView when allowsLinkPreview property of WKWebView is set to NO.


allowsLinkPreview -  As per documentation this property is supposed to control the behavior of long tap on link but this somehow affects text selection. 


Issue is observed only in iPad and recent iOS 13 versions.
Sample project attached was tested on 13.4.5
Comment 1 Radar WebKit Bug Importer 2020-04-08 16:49:59 PDT
<rdar://problem/61485415>
Comment 2 Wenson Hsieh 2020-04-08 16:58:09 PDT
I’ve been investigating this bug here: <rdar://problem/60454016>
Comment 3 Wenson Hsieh 2020-04-10 10:28:25 PDT
Note that the inability to select text using “double tap-hold” (i.e. the tap-and-half gesture) isn’t actually a new problem, but I think I can just fix both in this patch.
Comment 4 Wenson Hsieh 2020-04-10 11:38:22 PDT
Created attachment 396109 [details]
Patch
Comment 5 EWS 2020-04-10 13:02:24 PDT
Committed r259892: <https://trac.webkit.org/changeset/259892>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396109 [details].
Comment 6 Wenson Hsieh 2020-05-25 14:40:19 PDT
*** Bug 212299 has been marked as a duplicate of this bug. ***
Comment 7 Roman K 2020-06-02 01:19:25 PDT
still reproducible on iOS 13.5.1
can you clarify on which iOS this fix will land?
Comment 8 Tim Horton 2020-06-02 02:12:47 PDT
(In reply to Roman K from comment #7)
> still reproducible on iOS 13.5.1
> can you clarify on which iOS this fix will land?

Apple doesn't comment on the content or timing of future software updates.
Comment 9 Brent Fulgham 2022-02-12 21:00:14 PST
*** Bug 213247 has been marked as a duplicate of this bug. ***