+2008-02-29 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Darin
+
+ <rdar://problem/5771227> - Incorrect password handling text in credential sheet
+
+ * platform/network/ProtectionSpace.cpp:
+ (WebCore::ProtectionSpace::receivesCredentialSecurely): Call functional CFNetwork method to
+ get "secureness" of the auth challenge instead of figuring it out ourselves
+
2008-02-29 Brent Fulgham <bfulgham@gmail.com>
http://bugs.webkit.org/show_bug.cgi?id=17483
#include "config.h"
#include "ProtectionSpace.h"
+#include "AuthenticationCF.h"
+#include <CFNetwork/CFURLProtectionSpacePriv.h>
+#include <wtf/RetainPtr.h>
+
namespace WebCore {
// Need to enforce empty, non-null strings due to the pickiness of the String == String operator
bool ProtectionSpace::receivesCredentialSecurely() const
{
- return (m_serverType == ProtectionSpaceServerHTTPS ||
- m_serverType == ProtectionSpaceServerFTPS ||
- m_serverType == ProtectionSpaceProxyHTTPS ||
- m_authenticationScheme == ProtectionSpaceAuthenticationSchemeHTTPDigest);
+ RetainPtr<CFURLProtectionSpaceRef> cfSpace(AdoptCF, createCF(*this));
+ return cfSpace && CFURLProtectionSpaceReceivesCredentialSecurely(cfSpace.get());
}
bool operator==(const ProtectionSpace& a, const ProtectionSpace& b)