Reviewed by Darin and Geoff.
<rdar://problem/
5313508>
REGRESSION (Leopard): http/tests/xmlhttprequest/basic-auth.html hangs
Leopard Foundation now ignores credentials passed in as part of the URL so we need to pass them ourselves.
For the asynchronous case, we simply keep track of the URL and if it has a user name and password, we
pass those if we're asked to authenticate.
For the synchronous case, implement a new connection delegate and run it in a separate mode so
no other sources will fire.
* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::loadResourceSynchronously):
(-[WebCoreResourceHandleAsDelegate dealloc]):
(-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
(-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
(-[WebCoreSynchronousLoader _isDone]):
(-[WebCoreSynchronousLoader dealloc]):
(-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]):
(-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]):
(-[WebCoreSynchronousLoader connection:didReceiveResponse:]):
(-[WebCoreSynchronousLoader connection:didReceiveData:]):
(-[WebCoreSynchronousLoader connectionDidFinishLoading:]):
(-[WebCoreSynchronousLoader connection:didFailWithError:]):
(-[WebCoreSynchronousLoader _data]):
(-[WebCoreSynchronousLoader _response]):
(-[WebCoreSynchronousLoader _error]):
(+[WebCoreSynchronousLoader loadRequest:returningResponse:error:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24205
268f45cc-cd09-0410-ab3c-
d52691b4dbfc