Changeset 171858 in webkit


Ignore:
Timestamp:
Jul 31, 2014 9:43:06 AM (10 years ago)
Author:
mitz@apple.com
Message:

Source/WebCore: WebCore part of: Server trust authentication challenges aren’t sent to the navigation delegate
https://bugs.webkit.org/show_bug.cgi?id=135327

Reviewed by Alexey Proskuryakov.

  • platform/network/cf/ResourceHandleCFNet.cpp:

(WebCore::ResourceHandle::receivedCredential): Don’t try to change the persistence of
credentials used for server trust, because the platform doesn’t support persistence values
other than Session for server trust.

  • platform/network/mac/ResourceHandleMac.mm:

(WebCore::ResourceHandle::receivedCredential): Ditto.

Source/WebKit2: WebKit part of: Server trust authentication challenges aren’t sent to the navigation delegate
https://bugs.webkit.org/show_bug.cgi?id=135327

Reviewed by Alexey Proskuryakov.

  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::NavigationState::LoaderClient::canAuthenticateAgainstProtectionSpaceInFrame):
Return true for server trust protection spaces if the delegate implements
-webView:didReceiveAuthenticationChallenge:completionHandler:.
(WebKit::NavigationState::LoaderClient::didReceiveAuthenticationChallengeInFrame): Removed
an assertion that is no longer true due to the above.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171857 r171858  
     12014-07-31  Dan Bernstein  <mitz@apple.com>
     2
     3        WebCore part of: Server trust authentication challenges aren’t sent to the navigation delegate
     4        https://bugs.webkit.org/show_bug.cgi?id=135327
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * platform/network/cf/ResourceHandleCFNet.cpp:
     9        (WebCore::ResourceHandle::receivedCredential): Don’t try to change the persistence of
     10        credentials used for server trust, because the platform doesn’t support persistence values
     11        other than Session for server trust.
     12        * platform/network/mac/ResourceHandleMac.mm:
     13        (WebCore::ResourceHandle::receivedCredential): Ditto.
     14
    1152014-07-31  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp

    r171801 r171858  
    422422    }
    423423
    424     if (credential.persistence() == CredentialPersistenceForSession) {
     424    if (credential.persistence() == CredentialPersistenceForSession && challenge.protectionSpace().authenticationScheme() != ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested) {
    425425        // Manage per-session credentials internally, because once NSURLCredentialPersistencePerSession is used, there is no way
    426426        // to ignore it for a particular request (short of removing it altogether).
  • trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm

    r171801 r171858  
    651651    }
    652652
    653     if (credential.persistence() == CredentialPersistenceForSession) {
     653    if (credential.persistence() == CredentialPersistenceForSession && challenge.protectionSpace().authenticationScheme() != ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested) {
    654654        // Manage per-session credentials internally, because once NSURLCredentialPersistenceForSession is used, there is no way
    655655        // to ignore it for a particular request (short of removing it altogether).
  • trunk/Source/WebKit2/ChangeLog

    r171850 r171858  
     12014-07-31  Dan Bernstein  <mitz@apple.com>
     2
     3        WebKit part of: Server trust authentication challenges aren’t sent to the navigation delegate
     4        https://bugs.webkit.org/show_bug.cgi?id=135327
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * UIProcess/Cocoa/NavigationState.mm:
     9        (WebKit::NavigationState::LoaderClient::canAuthenticateAgainstProtectionSpaceInFrame):
     10        Return true for server trust protection spaces if the delegate implements
     11        -webView:didReceiveAuthenticationChallenge:completionHandler:.
     12        (WebKit::NavigationState::LoaderClient::didReceiveAuthenticationChallengeInFrame): Removed
     13        an assertion that is no longer true due to the above.
     14
    1152014-07-31  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r171816 r171858  
    692692{
    693693    if (m_navigationState.m_navigationDelegateMethods.webViewDidReceiveAuthenticationChallengeCompletionHandler)
    694         return protectionSpace->authenticationScheme() != WebCore::ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested;
     694        return true;
    695695
    696696    if (!m_navigationState.m_navigationDelegateMethods.webViewCanAuthenticateAgainstProtectionSpace)
     
    708708#if !defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
    709709    if (m_navigationState.m_navigationDelegateMethods.webViewDidReceiveAuthenticationChallengeCompletionHandler) {
    710         ASSERT(authenticationChallenge->protectionSpace()->authenticationScheme() != WebCore::ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested);
    711710        auto navigationDelegate = m_navigationState.m_navigationDelegate.get();
    712711        if (!navigationDelegate) {
Note: See TracChangeset for help on using the changeset viewer.