Changeset 186559 in webkit


Ignore:
Timestamp:
Jul 8, 2015, 6:03:51 PM (10 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r183861. rdar://problem/21716677

Location:
branches/safari-600.1.4.17-branch/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-600.1.4.17-branch/Source/WebKit2/ChangeLog

    r186539 r186559  
     12015-07-08  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r183861. rdar://problem/21716677
     4
     5    2015-05-05  Alexey Proskuryakov  <ap@apple.com>
     6
     7            NetworkResourceLoader::cleanup() should clear ResourceHandle client pointer.
     8            https://bugs.webkit.org/show_bug.cgi?id=144641
     9            rdar://problem/20250960
     10
     11            Reviewed by David Kilzer.
     12
     13            * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::cleanup):
     14            Clear the client pointer.
     15
     16            * Shared/Authentication/AuthenticationManager.cpp:
     17            (WebKit::AuthenticationManager::useCredentialForChallenge):
     18            (WebKit::AuthenticationManager::continueWithoutCredentialForChallenge):
     19            (WebKit::AuthenticationManager::cancelChallenge):
     20            (WebKit::AuthenticationManager::performDefaultHandling):
     21            (WebKit::AuthenticationManager::rejectProtectionSpaceAndContinue):
     22            Updated comments, which were not accurate, at least on Mac.
     23
    1242015-07-08  Lucas Forschler  <lforschler@apple.com>
    225
  • branches/safari-600.1.4.17-branch/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

    r170958 r186559  
    9999
    100100    ASSERT(RunLoop::isMain());
    101    
     101
    102102    if (reply || parameters.shouldBufferResource)
    103103        m_bufferedData = WebCore::SharedBuffer::create();
     
    162162    // Tell the scheduler about this finished loader soon so it can start more network requests.
    163163    NetworkProcess::shared().networkResourceLoadScheduler().scheduleRemoveLoader(this);
    164 
    165164    if (m_handle) {
    166         // Explicit deref() balanced by a ref() in NetworkResourceLoader::start()
    167         // This might cause the NetworkResourceLoader to be destroyed and therefore we do it last.
    168         m_handle = 0;
    169         deref();
     165        m_handle->setClient(nullptr);
     166        m_handle = nullptr;
    170167    }
    171168}
     
    216213    // FIXME (NetworkProcess): For the memory cache we'll also need to cache the response data here.
    217214    // Such buffering will need to be thread safe, as this callback is happening on a background thread.
    218    
     215
    219216    m_bytesReceived += buffer->size();
    220217    if (m_bufferedData)
  • branches/safari-600.1.4.17-branch/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp

    r169782 r186559  
    117117    AuthenticationClient* coreClient = challenge.authenticationClient();
    118118    if (!coreClient) {
    119         // This authentication challenge comes from a download.
     119        // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads.
     120        // We should not call Download::receivedCredential in the latter case.
    120121        Download::receivedCredential(challenge, credential);
    121122        return;
     
    133134    AuthenticationClient* coreClient = challenge.authenticationClient();
    134135    if (!coreClient) {
    135         // This authentication challenge comes from a download.
     136        // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads.
     137        // We should not call Download::receivedCredential in the latter case.
    136138        Download::receivedRequestToContinueWithoutCredential(challenge);
    137139        return;
     
    149151    AuthenticationClient* coreClient = challenge.authenticationClient();
    150152    if (!coreClient) {
    151         // This authentication challenge comes from a download.
     153        // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads.
     154        // We should not call Download::receivedCredential in the latter case.
    152155        Download::receivedCancellation(challenge);
    153156        return;
     
    165168    AuthenticationClient* coreClient = challenge.authenticationClient();
    166169    if (!coreClient) {
    167         // This authentication challenge comes from a download.
     170        // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads.
     171        // We should not call Download::receivedCredential in the latter case.
    168172        Download::receivedRequestToPerformDefaultHandling(challenge);
    169173        return;
     
    181185    AuthenticationClient* coreClient = challenge.authenticationClient();
    182186    if (!coreClient) {
    183         // This authentication challenge comes from a download.
     187        // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads.
     188        // We should not call Download::receivedCredential in the latter case.
    184189        Download::receivedChallengeRejection(challenge);
    185190        return;
Note: See TracChangeset for help on using the changeset viewer.