Changeset 138977 in webkit
- Timestamp:
- Jan 7, 2013 12:47:54 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r138976 r138977 1 2013-01-07 Joe Mason <jmason@rim.com> 2 3 [BlackBerry] Handle the new AuthRetry result code in NetworkJob::notifyAuthReceived 4 https://bugs.webkit.org/show_bug.cgi?id=106233 5 6 Reviewed by Rob Buis. 7 8 Internal PR: 270683 9 FilterStream::notifyAuthReceived has a new result code, AuthRetry. When it's received we 10 need to handle it by resending the request with the same credentials. 11 12 Reviewed internally by Leo Yang. 13 14 * platform/network/blackberry/NetworkJob.cpp: 15 (WebCore::NetworkJob::notifyAuthReceived): 16 * platform/network/blackberry/NetworkJob.h: 17 (NetworkJob): 18 1 19 2013-01-07 Philip Rogers <pdr@google.com> 2 20 -
trunk/Source/WebCore/platform/network/blackberry/NetworkJob.cpp
r135867 r138977 253 253 } 254 254 255 void NetworkJob::notifyAuthReceived(BlackBerry::Platform::NetworkRequest::AuthType authType, const char* realm, bool success, bool requireCredentials)255 void NetworkJob::notifyAuthReceived(BlackBerry::Platform::NetworkRequest::AuthType authType, const char* realm, AuthResult result, bool requireCredentials) 256 256 { 257 257 using BlackBerry::Platform::NetworkRequest; … … 293 293 } 294 294 295 if (success) { 295 // On success, update stored credentials if necessary 296 // On failure, purge credentials and send new request 297 // On retry, update stored credentials if necessary and send new request 298 if (result == AuthResultFailure) 299 purgeCredentials(); 300 else { 296 301 // Update the credentials that will be stored to match the scheme that was actually used 297 302 AuthenticationChallenge& challenge = m_handle->getInternal()->m_currentWebChallenge; … … 308 313 } 309 314 storeCredentials(); 310 return; 311 } 312 313 purgeCredentials(); 314 m_newJobWithCredentialsStarted = sendRequestWithCredentials(serverType, scheme, realm, requireCredentials); 315 } 316 if (result != AuthResultSuccess) 317 m_newJobWithCredentialsStarted = sendRequestWithCredentials(serverType, scheme, realm, requireCredentials); 315 318 } 316 319 -
trunk/Source/WebCore/platform/network/blackberry/NetworkJob.h
r135867 r138977 74 74 virtual void notifyHeadersReceived(const BlackBerry::Platform::NetworkRequest::HeaderList& headers); 75 75 virtual void notifyMultipartHeaderReceived(const char* key, const char* value); 76 virtual void notifyAuthReceived(BlackBerry::Platform::NetworkRequest::AuthType, const char* realm, bool success, bool requireCredentials);76 virtual void notifyAuthReceived(BlackBerry::Platform::NetworkRequest::AuthType, const char* realm, AuthResult, bool requireCredentials); 77 77 // notifyStringHeaderReceived exists only to resolve ambiguity between char* and String parameters 78 78 void notifyStringHeaderReceived(const String& key, const String& value);
Note: See TracChangeset
for help on using the changeset viewer.