diff options
| author | Nate Fischer <ntfschr@google.com> | 2017-08-29 16:17:22 -0700 |
|---|---|---|
| committer | Nate Fischer <ntfschr@google.com> | 2017-08-30 21:03:19 +0000 |
| commit | fbebfa9d532c374b8a3249f176df31e4275b4a02 (patch) | |
| tree | 8108676747cf762b6790efa8d6f0f8f086aa1cbd /core/java/android/webkit | |
| parent | d9abde75e843a0486d5f3c5f5488cb01bde9fc73 (diff) | |
WebView: fix setSafeBrowsingWhitelist table in docs
No change to logic, only docs changes.
The documentation for setSafeBrowsingWhitelist uses a table to describe
whitelist rules. However, this table was previously formatted
incorrectly (it uses <th> elements for each cell, when normal data cells
should use <td> according to Android API guidelines).
This fixes the table to conform to the guidelines, adjusts white space
for consistency, and removes an unnecessary <p> element.
Bug: 65173825
Test: make docs (and manually verify the table looks correct)
Change-Id: I5d7390a44613aaa3acb147a69f8e0ce741e817ed
Diffstat (limited to 'core/java/android/webkit')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 81ab4078e549..f918cadde87c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1656,14 +1656,13 @@ public class WebView extends AbsoluteLayout * Each rule should take one of these: * <table> * <tr><th> Rule </th> <th> Example </th> <th> Matches Subdomain</th> </tr> - * <tr><th> HOSTNAME </th> <th> example.com </th> <th> Yes </th> </tr> - * <tr><th>.HOSTNAME</th> <th> .example.com </th> <th> No </th> </tr> - * <tr><th> IPV4_LITERAL </th> <th> 192.168.1.1 </th> <th> No </th></tr> - * <tr><th> IPV6_LITERAL_WITH_BRACKETS</th><th>[10:20:30:40:50:60:70:80]</th><th>No</th></tr> + * <tr><td> HOSTNAME </td> <td> example.com </td> <td> Yes </td> </tr> + * <tr><td> .HOSTNAME </td> <td> .example.com </td> <td> No </td> </tr> + * <tr><td> IPV4_LITERAL </td> <td> 192.168.1.1 </td> <td> No </td></tr> + * <tr><td> IPV6_LITERAL_WITH_BRACKETS </td><td>[10:20:30:40:50:60:70:80]</td><td>No</td></tr> * </table> * <p> * All other rules, including wildcards, are invalid. - * <p> * * @param urls the list of URLs * @param callback will be called with true if URLs are successfully added to the whitelist. |
