summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nate Fischer <ntfschr@google.com> 2019-01-18 17:43:02 -0800
committer android-build-merger <android-build-merger@google.com> 2019-01-18 17:43:02 -0800
commitb3c20e6ba5b4d99699dd07fc09392c3909dff770 (patch)
tree834273a95ae86825b244c9c1ee7118f9ac664717
parent26058dc2a00ce545631f543ee9f7df1b2fe41d0e (diff)
parentf85e6546e6596804f07a18452aa3d10cad5597c7 (diff)
WebView: clean up onReceivedSslError docs am: 9f726cd280
am: f85e6546e6 Change-Id: I05296f1e7c4b400b1111eed312d55741cffd4617
-rw-r--r--core/java/android/webkit/WebViewClient.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java
index 300bb6fd4890..090640e48aec 100644
--- a/core/java/android/webkit/WebViewClient.java
+++ b/core/java/android/webkit/WebViewClient.java
@@ -379,11 +379,16 @@ public class WebViewClient {
/**
* Notify the host application that an SSL error occurred while loading a
- * resource. The host application must call either handler.cancel() or
- * handler.proceed(). Note that the decision may be retained for use in
+ * resource. The host application must call either {@link SslErrorHandler#cancel} or
+ * {@link SslErrorHandler#proceed}. Note that the decision may be retained for use in
* response to future SSL errors. The default behavior is to cancel the
* load.
* <p>
+ * This API is only called for recoverable SSL certificate errors. In the case of
+ * non-recoverable errors (such as when the server fails the client), WebView will call {@link
+ * #onReceivedError(WebView, WebResourceRequest, WebResourceError)} with {@link
+ * #ERROR_FAILED_SSL_HANDSHAKE}.
+ * <p>
* Applications are advised not to prompt the user about SSL errors, as
* the user is unlikely to be able to make an informed security decision
* and WebView does not provide any UI for showing the details of the
@@ -391,10 +396,10 @@ public class WebViewClient {
* <p>
* Application overrides of this method may display custom error pages or
* silently log issues, but it is strongly recommended to always call
- * handler.cancel() and never allow proceeding past errors.
+ * {@link SslErrorHandler#cancel} and never allow proceeding past errors.
*
* @param view The WebView that is initiating the callback.
- * @param handler An SslErrorHandler object that will handle the user's
+ * @param handler An {@link SslErrorHandler} that will handle the user's
* response.
* @param error The SSL error object.
*/