Merge "WebView: remove non-inclusive terminology from docs" am: d65785a8cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1373569 Change-Id: I29ee83061203ceae125491b1a2232804dbbf534a
This commit is contained in:
@@ -1497,7 +1497,7 @@ public class WebView extends AbsoluteLayout
|
|||||||
*
|
*
|
||||||
* @param hosts the list of hosts
|
* @param hosts the list of hosts
|
||||||
* @param callback will be called with {@code true} if hosts are successfully added to the
|
* @param callback will be called with {@code true} if hosts are successfully added to the
|
||||||
* whitelist. It will be called with {@code false} if any hosts are malformed. The callback
|
* allowlist. It will be called with {@code false} if any hosts are malformed. The callback
|
||||||
* will be run on the UI thread
|
* will be run on the UI thread
|
||||||
*/
|
*/
|
||||||
public static void setSafeBrowsingWhitelist(@NonNull List<String> hosts,
|
public static void setSafeBrowsingWhitelist(@NonNull List<String> hosts,
|
||||||
|
|||||||
@@ -173,8 +173,9 @@ public class WebViewClient {
|
|||||||
* when accessing private data or the view system.
|
* when accessing private data or the view system.
|
||||||
*
|
*
|
||||||
* <p class="note"><b>Note:</b> When Safe Browsing is enabled, these URLs still undergo Safe
|
* <p class="note"><b>Note:</b> When Safe Browsing is enabled, these URLs still undergo Safe
|
||||||
* Browsing checks. If this is undesired, whitelist the URL with {@link
|
* Browsing checks. If this is undesired, you can use {@link WebView#setSafeBrowsingWhitelist}
|
||||||
* WebView#setSafeBrowsingWhitelist} or ignore the warning with {@link #onSafeBrowsingHit}.
|
* to skip Safe Browsing checks for that host or dismiss the warning in {@link
|
||||||
|
* #onSafeBrowsingHit} by calling {@link SafeBrowsingResponse#proceed}.
|
||||||
*
|
*
|
||||||
* @param view The {@link android.webkit.WebView} that is requesting the
|
* @param view The {@link android.webkit.WebView} that is requesting the
|
||||||
* resource.
|
* resource.
|
||||||
@@ -211,8 +212,9 @@ public class WebViewClient {
|
|||||||
* when accessing private data or the view system.
|
* when accessing private data or the view system.
|
||||||
*
|
*
|
||||||
* <p class="note"><b>Note:</b> When Safe Browsing is enabled, these URLs still undergo Safe
|
* <p class="note"><b>Note:</b> When Safe Browsing is enabled, these URLs still undergo Safe
|
||||||
* Browsing checks. If this is undesired, whitelist the URL with {@link
|
* Browsing checks. If this is undesired, you can use {@link WebView#setSafeBrowsingWhitelist}
|
||||||
* WebView#setSafeBrowsingWhitelist} or ignore the warning with {@link #onSafeBrowsingHit}.
|
* to skip Safe Browsing checks for that host or dismiss the warning in {@link
|
||||||
|
* #onSafeBrowsingHit} by calling {@link SafeBrowsingResponse#proceed}.
|
||||||
*
|
*
|
||||||
* @param view The {@link android.webkit.WebView} that is requesting the
|
* @param view The {@link android.webkit.WebView} that is requesting the
|
||||||
* resource.
|
* resource.
|
||||||
|
|||||||
Reference in New Issue
Block a user