Bug 163989 - WKDataDetectorTypePhoneNumber breaks web usage.
Summary: WKDataDetectorTypePhoneNumber breaks web usage.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: Unspecified iOS 10
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-25 14:59 PDT by michaeldo
Modified: 2016-11-01 17:11 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michaeldo 2016-10-25 14:59:24 PDT
Enabling WKDataDetectorTypePhoneNumber in the configuration of a WKWebView incorrectly turns existing links into detected "Phone Numbers", breaking the functionality of the displayed web page.

Steps to Reproduce:
1. Create WKWebView with configuration that has WKDataDetectorTypePhoneNumber set as a dataDetectorType.
2. Navigate to www.kanyetothe.com/forum/index.php?topic=56310.48402

Expected Results:
Forum page navigation should still work as in Safari on iOS.

(Safari on iOS can also correctly identify non-linked phone numbers without the false positives. For example, see directsurety.com)

Actual Results:
Page navigation is broken since the links have been incorrectly identified as phone numbers.

Tested on iPhone 7 iOS 10.1
Comment 1 Radar WebKit Bug Importer 2016-11-01 17:06:17 PDT
<rdar://problem/29055642>