Changeset 269049 in webkit
- Timestamp:
- Oct 27, 2020, 10:30:14 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Cocoa/NavigationState.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r269048 r269049 1 2020-10-27 Alex Christensen <achristensen@webkit.org> 2 3 Use NSURLSessionAuthChallengeRejectProtectionSpace if WKNavigationDelegate didReceiveAuthenticationChallenge is not implemented 4 https://bugs.webkit.org/show_bug.cgi?id=218008 5 6 Reviewed by Darin Adler. 7 8 This is documented in WKNavigationDelegate.h, and the behavior is basically identical. 9 The difference is if there is a challenge with multiple protection spaces and a delegate that implements didReceiveAuthenticationChallenge 10 is attached between the delegate callbacks, it will receive the second callback. This is unlikely and next to impossible to test, but 11 out of principle we should behave like we have documented that we do. 12 13 * UIProcess/Cocoa/NavigationState.mm: 14 (WebKit::NavigationState::NavigationClient::didReceiveAuthenticationChallenge): 15 1 16 2020-10-27 Sam Weinig <weinig@apple.com> 2 17 -
trunk/Source/WebKit/UIProcess/Cocoa/NavigationState.mm
r263422 r269049 1002 1002 { 1003 1003 if (!m_navigationState.m_navigationDelegateMethods.webViewDidReceiveAuthenticationChallengeCompletionHandler) 1004 return authenticationChallenge.listener().completeChallenge(WebKit::AuthenticationChallengeDisposition:: PerformDefaultHandling);1005 1006 auto navigationDelegate = m_navigationState.m_navigationDelegate.get(); 1007 if (!navigationDelegate) 1008 return authenticationChallenge.listener().completeChallenge(WebKit::AuthenticationChallengeDisposition:: PerformDefaultHandling);1004 return authenticationChallenge.listener().completeChallenge(WebKit::AuthenticationChallengeDisposition::RejectProtectionSpaceAndContinue); 1005 1006 auto navigationDelegate = m_navigationState.m_navigationDelegate.get(); 1007 if (!navigationDelegate) 1008 return authenticationChallenge.listener().completeChallenge(WebKit::AuthenticationChallengeDisposition::RejectProtectionSpaceAndContinue); 1009 1009 1010 1010 auto checker = CompletionHandlerCallChecker::create(navigationDelegate.get(), @selector(webView:didReceiveAuthenticationChallenge:completionHandler:));
Note:
See TracChangeset
for help on using the changeset viewer.