diff --git a/core/java/android/webkit/LoadListener.java b/core/java/android/webkit/LoadListener.java index 8bacee4be8f4c..115499fe94450 100644 --- a/core/java/android/webkit/LoadListener.java +++ b/core/java/android/webkit/LoadListener.java @@ -1030,6 +1030,13 @@ class LoadListener extends Handler implements EventHandler { return; } + // If the response is an authentication and we've resent the + // request with some credentials then don't commit the headers + // of this response; wait for the response to the request with the + // credentials. + if (mAuthHeader != null) + return; + // Commit the headers to WebCore int nativeResponse = createNativeResponse(); // The native code deletes the native response object.