Changeset 50025 in webkit
- Timestamp:
- Oct 23, 2009 9:12:56 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r50021 r50025 1 2009-10-23 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 <rdar://problem/7294131> Assertion failure in AuthenticationMac at 6 mac(const Credential&) after authenticating to MobileMe Gallery movie 7 8 * platform/network/Credential.cpp: 9 (WebCore::Credential::Credential): Initialize m_persistence. 10 (WebCore::Credential::isEmpty): Made this method const. 11 * platform/network/Credential.h: 12 * platform/network/mac/AuthenticationMac.mm: 13 (WebCore::mac): Return nil if the Credential is empty. 14 1 15 2009-10-23 Brian Weinstein <bweinstein@apple.com> 2 16 -
trunk/WebCore/platform/network/Credential.cpp
r48363 r50025 33 33 : m_user("") 34 34 , m_password("") 35 , m_persistence(CredentialPersistenceNone) 35 36 { 36 37 } … … 45 46 } 46 47 47 bool Credential::isEmpty() 48 bool Credential::isEmpty() const 48 49 { 49 50 return m_user.isEmpty() && m_password.isEmpty(); -
trunk/WebCore/platform/network/Credential.h
r48363 r50025 42 42 Credential(const String& user, const String& password, CredentialPersistence); 43 43 44 bool isEmpty() ;44 bool isEmpty() const; 45 45 46 46 const String& user() const; -
trunk/WebCore/platform/network/mac/AuthenticationMac.mm
r48363 r50025 151 151 NSURLCredential *mac(const Credential& coreCredential) 152 152 { 153 if (coreCredential.isEmpty()) 154 return nil; 155 153 156 NSURLCredentialPersistence persistence = NSURLCredentialPersistenceNone; 154 157 switch (coreCredential.persistence()) {
Note: See TracChangeset
for help on using the changeset viewer.