OSDN Git Service

Fixes browser to store and read HTTP authentication credentials in the correct WebView.
[android-x86/packages-apps-Browser.git] / src / com / android / browser / Tab.java
index d450b50..07b17a9 100644 (file)
@@ -770,8 +770,8 @@ class Tab {
             boolean reuseHttpAuthUsernamePassword = handler
                     .useHttpAuthUsernamePassword();
 
-            if (reuseHttpAuthUsernamePassword && mMainView != null) {
-                String[] credentials = mMainView.getHttpAuthUsernamePassword(
+            if (reuseHttpAuthUsernamePassword && view != null) {
+                String[] credentials = view.getHttpAuthUsernamePassword(
                         host, realm);
                 if (credentials != null && credentials.length == 2) {
                     username = credentials[0];