Clear the WebTextView in didFirstLayout.
When reaching a new page, remove the WebTextView. This
fixes a bug where the user logs into a site, and the
WebTextView remains on screen.
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 4d345bb..c1ba690 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -4918,6 +4918,11 @@
}
}
setNewZoomScale(scale, false);
+ // As we are on a new page, remove the WebTextView. This
+ // is necessary for page loads driven by webkit, and in
+ // particular when the user was on a password field, so
+ // the WebTextView was visible.
+ clearTextEntry();
break;
case MOVE_OUT_OF_PLUGIN:
if (nativePluginEatsNavKey()) {