[webkit-help] Question about WKNavigationDelegate API

Eugene But eugenebut at chromium.org
Thu Aug 20 08:31:49 PDT 2015


Hi,

I would appreciate if someone could answer a question about:
*-[WKNavigationDelegate
webView:didReceiveAuthenticationChallenge:completionHandler:]*

According to method's documentation in WKNavigationDelegate.h:

*"If you do not implement this method, the web view will respond to the
authentication challenge with the
NSURLSessionAuthChallengeRejectProtectionSpace disposition.". *

But according to
NSURLSessionAuthChallengeDisposition.NSURLSessionAuthChallengePerformDefaultHandling
documentation in NSURLSession.h:

"Default handling for the challenge - as if this delegate were not
implemented; the credential parameter is ignored."

So my question is: are these 2 enum values
(NSURLSessionAuthChallengePerformDefaultHandling
and NSURLSessionAuthChallengeRejectProtectionSpace) identical for the
purpose of implementing didReceiveAuthenticationChallenge:?

If I want to implement didReceiveAuthenticationChallenge: and perform its
default behavior (as this method was not implemented) which enum value
should I use?

Thanks in advance,
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-help/attachments/20150820/f6094755/attachment.html>


More information about the webkit-help mailing list