summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/network/android/ResourceHandleAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/network/android/ResourceHandleAndroid.cpp')
-rw-r--r--WebCore/platform/network/android/ResourceHandleAndroid.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/platform/network/android/ResourceHandleAndroid.cpp b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
index 6759852..aadf43b 100644
--- a/WebCore/platform/network/android/ResourceHandleAndroid.cpp
+++ b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
@@ -158,7 +158,11 @@ void ResourceHandle::loadResourceSynchronously(const ResourceRequest& request,
SyncLoader s(error, response, data);
ResourceHandle h(request, &s, false, false, false);
// This blocks until the load is finished.
- ResourceLoaderAndroid::start(&h, request, frame->loader()->client(), false, true);
+ // Use the request owned by the ResourceHandle. This has had the username
+ // and password (if present) stripped from the URL in
+ // ResourceHandleInternal::ResourceHandleInternal(). This matches the
+ // behaviour in the asynchronous case.
+ ResourceLoaderAndroid::start(&h, h.getInternal()->m_request, frame->loader()->client(), false, true);
}
} // namespace WebCore