From fbebfa9d532c374b8a3249f176df31e4275b4a02 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Tue, 29 Aug 2017 16:17:22 -0700 Subject: [PATCH] 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 elements for each cell, when normal data cells should use according to Android API guidelines). This fixes the table to conform to the guidelines, adjusts white space for consistency, and removes an unnecessary

element. Bug: 65173825 Test: make docs (and manually verify the table looks correct) Change-Id: I5d7390a44613aaa3acb147a69f8e0ce741e817ed --- core/java/android/webkit/WebView.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 81ab4078e549d..f918cadde87c7 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: * * - * - * - * - * + * + * + * + * *
Rule Example Matches Subdomain
HOSTNAME example.com Yes
.HOSTNAME .example.com No
IPV4_LITERAL 192.168.1.1 No
IPV6_LITERAL_WITH_BRACKETS[10:20:30:40:50:60:70:80]No
HOSTNAME example.com Yes
.HOSTNAME .example.com No
IPV4_LITERAL 192.168.1.1 No
IPV6_LITERAL_WITH_BRACKETS [10:20:30:40:50:60:70:80]No
*

* All other rules, including wildcards, are invalid. - *

* * @param urls the list of URLs * @param callback will be called with true if URLs are successfully added to the whitelist.