Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: ios/web/web_state/ui/wk_web_view_configuration_provider.mm

Issue 2076753002: Enable WKWebView phone number detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/wk_web_view_configuration_provider.mm
diff --git a/ios/web/web_state/ui/wk_web_view_configuration_provider.mm b/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
index 647d596a6e64596e706eaa745ea02f67fe034af4..f9a09a81704631c9608d08a81be85bcafcfb88ca 100644
--- a/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
+++ b/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
@@ -63,6 +63,9 @@ WKWebViewConfigurationProvider::GetWebViewConfiguration() {
[configuration_
setWebsiteDataStore:[WKWebsiteDataStore nonPersistentDataStore]];
}
+ if (base::ios::IsRunningOnOrLater(10, 0, 0)) {
Eugene But (OOO till 7-30) 2016/06/16 21:39:59 Could you please add IsRunningOnIOS10OrLater to ba
michaeldo 2016/06/16 22:03:21 Done.
+ [configuration_ setDataDetectorTypes:WKDataDetectorTypePhoneNumber];
Eugene But (OOO till 7-30) 2016/06/16 21:39:59 This will not compile with iOS9 SDK, so you should
michaeldo 2016/06/16 22:03:21 Done.
+ }
// setJavaScriptCanOpenWindowsAutomatically is required to support popups.
[[configuration_ preferences] setJavaScriptCanOpenWindowsAutomatically:YES];
[[configuration_ userContentController]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698