Skip to content

Commit 0a20d6a

Browse files
Steve BlockAndroid (Google) Code Review
authored andcommitted
Merge "Always call WebView.onPageStarted(), regardless of whether a WebViewClient has been set"
2 parents 87e12b0 + a0d767c commit 0a20d6a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/java/android/webkit/CallbackProxy.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,9 @@ public void startWait() {
905905
*/
906906

907907
public void onPageStarted(String url, Bitmap favicon) {
908-
// Do an unsynchronized quick check to avoid posting if no callback has
909-
// been set.
910-
if (mWebViewClient == null) {
911-
return;
912-
}
908+
// We need to send the message even if no WebViewClient is set, because we need to call
909+
// WebView.onPageStarted().
910+
913911
// Performance probe
914912
if (PERF_PROBE) {
915913
mWebCoreThreadTime = SystemClock.currentThreadTimeMillis();

0 commit comments

Comments
 (0)