Changeset 186559 in webkit
- Timestamp:
- Jul 8, 2015, 6:03:51 PM (10 years ago)
- 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 1 2015-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 1 24 2015-07-08 Lucas Forschler <lforschler@apple.com> 2 25 -
branches/safari-600.1.4.17-branch/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp
r170958 r186559 99 99 100 100 ASSERT(RunLoop::isMain()); 101 101 102 102 if (reply || parameters.shouldBufferResource) 103 103 m_bufferedData = WebCore::SharedBuffer::create(); … … 162 162 // Tell the scheduler about this finished loader soon so it can start more network requests. 163 163 NetworkProcess::shared().networkResourceLoadScheduler().scheduleRemoveLoader(this); 164 165 164 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; 170 167 } 171 168 } … … 216 213 // FIXME (NetworkProcess): For the memory cache we'll also need to cache the response data here. 217 214 // Such buffering will need to be thread safe, as this callback is happening on a background thread. 218 215 219 216 m_bytesReceived += buffer->size(); 220 217 if (m_bufferedData) -
branches/safari-600.1.4.17-branch/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp
r169782 r186559 117 117 AuthenticationClient* coreClient = challenge.authenticationClient(); 118 118 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. 120 121 Download::receivedCredential(challenge, credential); 121 122 return; … … 133 134 AuthenticationClient* coreClient = challenge.authenticationClient(); 134 135 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. 136 138 Download::receivedRequestToContinueWithoutCredential(challenge); 137 139 return; … … 149 151 AuthenticationClient* coreClient = challenge.authenticationClient(); 150 152 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. 152 155 Download::receivedCancellation(challenge); 153 156 return; … … 165 168 AuthenticationClient* coreClient = challenge.authenticationClient(); 166 169 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. 168 172 Download::receivedRequestToPerformDefaultHandling(challenge); 169 173 return; … … 181 185 AuthenticationClient* coreClient = challenge.authenticationClient(); 182 186 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. 184 189 Download::receivedChallengeRejection(challenge); 185 190 return;
Note:
See TracChangeset
for help on using the changeset viewer.