| Index: webkit/child/weburlloader_impl.cc
|
| diff --git a/webkit/child/weburlloader_impl.cc b/webkit/child/weburlloader_impl.cc
|
| index 9ecf69a883f1aad21dbb377b364796210b96cd36..54827b6cf8cb5d1c534a78310b8f1af78d7d8a47 100644
|
| --- a/webkit/child/weburlloader_impl.cc
|
| +++ b/webkit/child/weburlloader_impl.cc
|
| @@ -360,6 +360,11 @@ void WebURLLoaderImpl::Context::Start(
|
| if (!request.allowStoredCredentials())
|
| load_flags |= net::LOAD_DO_NOT_SEND_AUTH_DATA;
|
|
|
| + if (request.targetType() == WebURLRequest::TargetIsXHR &&
|
| + (url.has_username() || url.has_password())) {
|
| + load_flags |= net::LOAD_DO_NOT_PROMPT_FOR_LOGIN;
|
| + }
|
| +
|
| HeaderFlattener flattener(load_flags);
|
| request.visitHTTPHeaderFields(&flattener);
|
|
|
|
|