diff options
| author | 2011-09-27 22:39:45 +0100 | |
|---|---|---|
| committer | 2011-09-28 10:44:11 +0100 | |
| commit | a0d767c8226babdc23c84d685d89d279b48f6c7e (patch) | |
| tree | 07dcf2258f9cd9d2b1ebd1adc21224ab7d7b6d26 | |
| parent | d9151bf1ccd9bc726ba2c252919503f8968649cc (diff) | |
Always call WebView.onPageStarted(), regardless of whether a WebViewClient has been set
This makes sure that the page's SSL certificate is cleared when the page load
starts.
Follows on from https://android-git.corp.google.com/g/#/c/138147.
Bug: 5287216
Change-Id: I40f74a72dc495c48d7167b7b70a845a8481feb85
| -rw-r--r-- | core/java/android/webkit/CallbackProxy.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/java/android/webkit/CallbackProxy.java b/core/java/android/webkit/CallbackProxy.java index c9fcf0c27842..5ee90a4fdab6 100644 --- a/core/java/android/webkit/CallbackProxy.java +++ b/core/java/android/webkit/CallbackProxy.java @@ -905,11 +905,9 @@ class CallbackProxy extends Handler { */ public void onPageStarted(String url, Bitmap favicon) { - // Do an unsynchronized quick check to avoid posting if no callback has - // been set. - if (mWebViewClient == null) { - return; - } + // We need to send the message even if no WebViewClient is set, because we need to call + // WebView.onPageStarted(). + // Performance probe if (PERF_PROBE) { mWebCoreThreadTime = SystemClock.currentThreadTimeMillis(); |