From cb01dba34842151d0bb056b01affdc1e9bf50193 Mon Sep 17 00:00:00 2001 From: Leon Clarke Date: Tue, 23 Feb 2010 14:46:39 +0000 Subject: [PATCH] Fix issue with authentication with flash --- core/java/android/webkit/LoadListener.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/java/android/webkit/LoadListener.java b/core/java/android/webkit/LoadListener.java index cdc6608ea1f6b..26cd67863ebdc 100644 --- a/core/java/android/webkit/LoadListener.java +++ b/core/java/android/webkit/LoadListener.java @@ -1021,6 +1021,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.