Changeset 223993 in webkit
- Timestamp:
- Oct 25, 2017 4:24:15 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r223990 r223993 1 2017-10-25 Per Arne Vollan <pvollan@apple.com> 2 3 Network process crash under WebKit::AuthenticationManager::rejectProtectionSpaceAndContinueForSingleChallenge. 4 https://bugs.webkit.org/show_bug.cgi?id=160234 5 rdar://problem/30675510 6 7 Reviewed by Geoffrey Garen. 8 9 An exception is raised because we call the method rejectProtectionSpaceAndContinueWithChallenge on the CFNetwork 10 challenge sender, which does not implement this optional method. The methods on the authentication challenge 11 sender are deprecated when network session is used, so we should not call them in that case. 12 13 * Shared/Authentication/AuthenticationManager.cpp: 14 (WebKit::AuthenticationManager::useCredentialForSingleChallenge): 15 (WebKit::AuthenticationManager::continueWithoutCredentialForSingleChallenge): 16 (WebKit::AuthenticationManager::cancelSingleChallenge): 17 (WebKit::AuthenticationManager::performDefaultHandlingForSingleChallenge): 18 (WebKit::AuthenticationManager::rejectProtectionSpaceAndContinueForSingleChallenge): 19 * Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm: 20 (WebKit::AuthenticationManager::receivedCredential): 21 (WebKit::AuthenticationManager::receivedRequestToContinueWithoutCredential): 22 (WebKit::AuthenticationManager::receivedCancellation): 23 (WebKit::AuthenticationManager::receivedRequestToPerformDefaultHandling): 24 (WebKit::AuthenticationManager::receivedChallengeRejection): 25 * Shared/Authentication/soup/AuthenticationManagerSoup.cpp: 26 1 27 2017-10-25 Youenn Fablet <youenn@apple.com> 2 28 -
trunk/Source/WebKit/Shared/Authentication/AuthenticationManager.cpp
r223431 r223993 227 227 return; 228 228 } 229 ASSERT(coreClient); 229 230 #endif 230 231 231 232 if (coreClient) 232 233 coreClient->receivedCredential(challenge.challenge, credential); 234 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 233 235 else 234 236 receivedCredential(challenge.challenge, credential); 237 #endif 235 238 } 236 239 … … 255 258 return; 256 259 } 260 ASSERT(coreClient); 257 261 #endif 258 262 259 263 if (coreClient) 260 264 coreClient->receivedRequestToContinueWithoutCredential(challenge.challenge); 265 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 261 266 else 262 267 receivedRequestToContinueWithoutCredential(challenge.challenge); 268 #endif 263 269 } 264 270 … … 283 289 return; 284 290 } 291 ASSERT(coreClient); 285 292 #endif 286 293 287 294 if (coreClient) 288 295 coreClient->receivedCancellation(challenge.challenge); 296 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 289 297 else 290 298 receivedCancellation(challenge.challenge); 299 #endif 291 300 } 292 301 … … 311 320 return; 312 321 } 322 ASSERT(coreClient); 313 323 #endif 314 324 315 325 if (coreClient) 316 326 coreClient->receivedRequestToPerformDefaultHandling(challenge.challenge); 327 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 317 328 else 318 329 receivedRequestToPerformDefaultHandling(challenge.challenge); 330 #endif 319 331 } 320 332 … … 339 351 return; 340 352 } 353 ASSERT(coreClient); 341 354 #endif 342 355 343 356 if (coreClient) 344 357 coreClient->receivedChallengeRejection(challenge.challenge); 358 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 345 359 else 346 360 receivedChallengeRejection(challenge.challenge); 361 #endif 347 362 } 348 363 -
trunk/Source/WebKit/Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm
r207585 r223993 27 27 #import "AuthenticationManager.h" 28 28 29 #if !USE(CFURLCONNECTION) && !USE(NETWORK_SESSION) 29 30 using namespace WebCore; 30 31 … … 33 34 void AuthenticationManager::receivedCredential(const AuthenticationChallenge& authenticationChallenge, const Credential& credential) 34 35 { 35 #if !USE(CFURLCONNECTION)36 36 [authenticationChallenge.sender() useCredential:credential.nsCredential() forAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 37 #endif38 37 } 39 38 40 39 void AuthenticationManager::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge& authenticationChallenge) 41 40 { 42 #if !USE(CFURLCONNECTION)43 41 [authenticationChallenge.sender() continueWithoutCredentialForAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 44 #endif45 42 } 46 43 47 44 void AuthenticationManager::receivedCancellation(const AuthenticationChallenge& authenticationChallenge) 48 45 { 49 #if !USE(CFURLCONNECTION)50 46 [authenticationChallenge.sender() cancelAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 51 #endif52 47 } 53 48 54 49 void AuthenticationManager::receivedRequestToPerformDefaultHandling(const AuthenticationChallenge& authenticationChallenge) 55 50 { 56 #if !USE(CFURLCONNECTION)57 51 [authenticationChallenge.sender() performDefaultHandlingForAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 58 #endif59 52 } 60 53 61 54 void AuthenticationManager::receivedChallengeRejection(const AuthenticationChallenge& authenticationChallenge) 62 55 { 63 #if !USE(CFURLCONNECTION)64 56 [authenticationChallenge.sender() rejectProtectionSpaceAndContinueWithChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 65 #endif66 57 } 67 58 68 59 } 60 #endif -
trunk/Source/WebKit/Shared/Authentication/soup/AuthenticationManagerSoup.cpp
r196600 r223993 27 27 #include "AuthenticationManager.h" 28 28 29 #if !USE(NETWORK_SESSION) 29 30 using namespace WebCore; 30 31 … … 52 53 53 54 } 55 #endif
Note: See TracChangeset
for help on using the changeset viewer.