Bug 212299 - Text selection does not work with apple-mobile-web-app-capable set to "yes"
Summary: Text selection does not work with apple-mobile-web-app-capable set to "yes"
Status: RESOLVED DUPLICATE of bug 210191
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-05-23 03:39 PDT by Roman K
Modified: 2020-05-25 14:40 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman K 2020-05-23 03:39:56 PDT
After recent update to iOS 13.4.1
on my iPhone XR
text selection is not working on PWA with "apple-mobile-web-app-capable" meta set to "yes".

All seems to be working on iPhone XS Max.

Minimal reproducible html:

<!DOCTYPE html>
<html>
<head>
  <title>test text selection</title>
  <meta name="apple-mobile-web-app-capable" content="yes" />
</head>

<body>
  Try to select this text.<br/>
  Should be selectable but it is not on my iPhone XR.
</body>
</html>
```

Also available here http://chestozo-ru.1gb.ru/ios-text-case/test.html

Steps to reproduce:
- on iPhone XR (maybe on others too)
- open http://chestozo-ru.1gb.ru/ios-text-case/test.html in Safari
- click on Bookmark / Add to Home Screen
- proceed with adding bookmark on the home screen
- open added bookmark
- try to select text by long tapping on it

Expected behaviour:
text selection dialog is activated

Actual behaviour:
nothing happens :/
Comment 1 Radar WebKit Bug Importer 2020-05-25 14:29:21 PDT
<rdar://problem/63605447>
Comment 2 Wenson Hsieh 2020-05-25 14:40:19 PDT
Homescreen web apps set -[WKWebView allowsLinkPreview] to NO, which triggered the bug in <https://webkit.org/b/210191>.

This doesn’t reproduce for me on builds that have the fix for r259892, so I think this has been fixed in trunk WebKit.

*** This bug has been marked as a duplicate of bug 210191 ***