Changeset 58264 in webkit


Ignore:
Timestamp:
Apr 26, 2010 2:43:52 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-26 Yongjun Zhang <yongjun_zhang@apple.com>

Reviewed by Alexey Proskuryakov.

https://bugs.webkit.org/show_bug.cgi?id=38128
Don't add empty credential to CredentialStorage.

An empty credential is currently regarded as a invalid login because it means a missing value in
protectionSpaceToCredentialMap. This change makes it consistent with current WebCore's behavior
by ignoring empty credentials.

No new tests added since this only affects credential entered by user from credential dialog,
which is not testable in DRT.

  • platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::receivedCredential):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58262 r58264  
     12010-04-26  Yongjun Zhang  <yongjun_zhang@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4       
     5        https://bugs.webkit.org/show_bug.cgi?id=38128
     6        Don't add empty credential to CredentialStorage.
     7       
     8        An empty credential is currently regarded as a invalid login because it means a missing value in
     9        protectionSpaceToCredentialMap.  This change makes it consistent with current WebCore's behavior
     10        by ignoring empty credentials.
     11       
     12        No new tests added since this only affects credential entered by user from credential dialog,
     13        which is not testable in DRT.
     14
     15        * platform/network/mac/ResourceHandleMac.mm:
     16        (WebCore::ResourceHandle::receivedCredential):
     17
    1182010-04-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    219
  • trunk/WebCore/platform/network/mac/ResourceHandleMac.mm

    r58158 r58264  
    573573    if (challenge != d->m_currentWebChallenge)
    574574        return;
     575   
     576    if (credential.isEmpty()) {
     577        receivedRequestToContinueWithoutCredential(challenge);
     578        return;
     579    }
    575580
    576581#ifdef BUILDING_ON_TIGER
Note: See TracChangeset for help on using the changeset viewer.