WKWebView should ask WKNavigationDelegate about bad ssl certificates
[WebKit-https.git] / Source / WebKit2 / NetworkProcess / NetworkLoad.cpp
index c510782..dbf1869 100644 (file)
@@ -352,12 +352,7 @@ void NetworkLoad::continueCanAuthenticateAgainstProtectionSpace(bool result)
             completionHandler(AuthenticationChallengeDisposition::RejectProtectionSpace, { });
         return;
     }
-    
-    if (m_challenge->protectionSpace().authenticationScheme() == ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested) {
-        completionHandler(AuthenticationChallengeDisposition::UseCredential, serverTrustCredential(*m_challenge));
-        return;
-    }
-    
+
     if (m_parameters.clientCredentialPolicy == DoNotAskClientForAnyCredentials) {
         completionHandler(AuthenticationChallengeDisposition::UseCredential, { });
         return;