Changeset 183861 in webkit


Ignore:
Timestamp:
May 5, 2015, 11:55:16 PM (10 years ago)
Author:
ap@apple.com
Message:

NetworkResourceLoader::cleanup() should clear ResourceHandle client pointer.
https://bugs.webkit.org/show_bug.cgi?id=144641
rdar://problem/20250960

Reviewed by David Kilzer.

  • NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::cleanup):

Clear the client pointer.

  • Shared/Authentication/AuthenticationManager.cpp:

(WebKit::AuthenticationManager::useCredentialForChallenge):
(WebKit::AuthenticationManager::continueWithoutCredentialForChallenge):
(WebKit::AuthenticationManager::cancelChallenge):
(WebKit::AuthenticationManager::performDefaultHandling):
(WebKit::AuthenticationManager::rejectProtectionSpaceAndContinue):
Updated comments, which were not accurate, at least on Mac.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r183854 r183861  
     12015-05-05  Alexey Proskuryakov  <ap@apple.com>
     2
     3        NetworkResourceLoader::cleanup() should clear ResourceHandle client pointer.
     4        https://bugs.webkit.org/show_bug.cgi?id=144641
     5        rdar://problem/20250960
     6
     7        Reviewed by David Kilzer.
     8
     9        * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::cleanup):
     10        Clear the client pointer.
     11
     12        * Shared/Authentication/AuthenticationManager.cpp:
     13        (WebKit::AuthenticationManager::useCredentialForChallenge):
     14        (WebKit::AuthenticationManager::continueWithoutCredentialForChallenge):
     15        (WebKit::AuthenticationManager::cancelChallenge):
     16        (WebKit::AuthenticationManager::performDefaultHandling):
     17        (WebKit::AuthenticationManager::rejectProtectionSpaceAndContinue):
     18        Updated comments, which were not accurate, at least on Mac.
     19
    1202015-05-05  Tim Horton  <timothy_horton@apple.com>
    221
  • trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

    r183737 r183861  
    205205    invalidateSandboxExtensions();
    206206
    207     m_handle = nullptr;
     207    if (m_handle) {
     208        m_handle->setClient(nullptr);
     209        m_handle = nullptr;
     210    }
    208211
    209212    // This will cause NetworkResourceLoader to be destroyed and therefore we do it last.
  • trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp

    r169782 r183861  
    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.