Changeset 88091 in webkit


Ignore:
Timestamp:
Jun 3, 2011 9:59:11 PM (13 years ago)
Author:
ap@apple.com
Message:

2011-06-03 Alexey Proskuryakov <ap@apple.com>

Reviewed by Darin Adler.

ResourceHandleMac should always respond to an authentication challenge
https://bugs.webkit.org/show_bug.cgi?id=61667

I don't know if this can actually happen in practice, so no new tests.

  • platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]): Cancel authentication challenge if we don't have a client. We must always respond to the challenge to release the connection, and there is nothing else to do in this state anyway.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88090 r88091  
     12011-06-03  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        ResourceHandleMac should always respond to an authentication challenge
     6        https://bugs.webkit.org/show_bug.cgi?id=61667
     7
     8        I don't know if this can actually happen in practice, so no new tests.
     9
     10        * platform/network/mac/ResourceHandleMac.mm:
     11        (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
     12        Cancel authentication challenge if we don't have a client. We must always respond to the
     13        challenge to release the connection, and there is nothing else to do in this state anyway.
     14
    1152011-06-03  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm

    r86330 r88091  
    748748    LOG(Network, "Handle %p delegate connection:%p didReceiveAuthenticationChallenge:%p", m_handle, connection, challenge);
    749749
    750     if (!m_handle)
    751         return;
     750    if (!m_handle) {
     751        [[challenge sender] cancelAuthenticationChallenge:challenge];
     752        return;
     753    }
    752754    m_handle->didReceiveAuthenticationChallenge(core(challenge));
    753755}
Note: See TracChangeset for help on using the changeset viewer.