summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/FindAddress.java
Commit message (Collapse)AuthorAgeFilesLines
* [webview] Fix handling of unicode digits in address detection.Tobias Sargeant2019-09-301-3/+3
| | | | | | | | | Restrict the set of digits recognised to ASCII to avoid throwing a NumberFormatException Bug: 141534831 Test: atest CtsWebkitTestCases Change-Id: Ifc39fef9b8e2b66b3e0a9a6590b5817136cccd2f
* Only match addresses without zip codes if at the end.Torne (Richard Coles)2018-04-061-13/+14
| | | | | | | | | | | | | The old native implementation of findAddress only accepted addresses without zip codes if they appeared at the end of the string. This was probably a bug as the documentation implies this should work in all cases, but fixing this bug has caused a lot of false positives while not fixing very many false negatives and this functionality is being deprecated anyway, so change it back. Fixes: 75409267 Test: tested upstream in chromium; direct copy of that code Change-Id: I3f3c300035cf02a23284737431bc6f94f542cbe7
* Add a Java FindAddress implentation.Tobias Sargeant2018-01-051-0/+478
This stops calling findAddress (possibly indirectly via Linkify) from loading webview native code, resulting in a performance and memory improvement for those apps that call WebView#findAddress but do not otherwise use WebView. Bug: 22362008 Test: Existing WebView CTS test. Change-Id: I5fcab725ceaf0d6a00e931d3b6cd2f3799d68391