Changeset 145581 in webkit


Ignore:
Timestamp:
Mar 12, 2013 2:10:45 PM (11 years ago)
Author:
ap@apple.com
Message:

Improve logging in ResourceHandleMac.mm
https://bugs.webkit.org/show_bug.cgi?id=112185

Reviewed by Brady Eidson.

  • platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Removed an obsolete #if. (WebCore::ResourceHandle::receivedCredential): (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): (WebCore::ResourceHandle::receivedCancellation): (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]): Added a FIXME. (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]):
  • platform/network/mac/ResourceResponseMac.mm: Removed an unneeded include.
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145575 r145581  
     12013-03-12  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Improve logging in ResourceHandleMac.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=112185
     5
     6        Reviewed by Brady Eidson.
     7
     8        * platform/network/mac/ResourceHandleMac.mm:
     9        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Removed an obsolete #if.
     10        (WebCore::ResourceHandle::receivedCredential):
     11        (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
     12        (WebCore::ResourceHandle::receivedCancellation):
     13        (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]): Added a FIXME.
     14        (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]):
     15
     16        * platform/network/mac/ResourceResponseMac.mm: Removed an unneeded include.
     17
    1182013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
    219
  • trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm

    r144495 r145581  
    455455    ASSERT(challenge.nsURLAuthenticationChallenge());
    456456
    457 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
    458457    // Proxy authentication is handled by CFNetwork internally. We can get here if the user cancels
    459458    // CFNetwork authentication dialog, and we shouldn't ask the client to display another one in that case.
     
    463462        return;
    464463    }
    465 #endif
    466464
    467465    if (!d->m_user.isNull() && !d->m_pass.isNull()) {
     
    534532void ResourceHandle::receivedCredential(const AuthenticationChallenge& challenge, const Credential& credential)
    535533{
     534    LOG(Network, "Handle %p receivedCredential", this);
     535
    536536    ASSERT(!challenge.isNull());
    537537    if (challenge != d->m_currentWebChallenge)
     
    562562void ResourceHandle::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge& challenge)
    563563{
     564    LOG(Network, "Handle %p receivedRequestToContinueWithoutCredential", this);
     565
    564566    ASSERT(!challenge.isNull());
    565567    if (challenge != d->m_currentWebChallenge)
     
    573575void ResourceHandle::receivedCancellation(const AuthenticationChallenge& challenge)
    574576{
     577    LOG(Network, "Handle %p receivedCancellation", this);
     578
    575579    if (challenge != d->m_currentWebChallenge)
    576580        return;
     
    675679- (void)connection:(NSURLConnection *)connection didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
    676680{
     681    // FIXME: We probably don't need to implement this (see <rdar://problem/8960124>).
     682
    677683    UNUSED_PARAM(connection);
    678684
     
    687693- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
    688694{
    689 #if LOG_DISABLED
    690     UNUSED_PARAM(connection);
    691 #endif
    692 
    693     LOG(Network, "Handle %p delegate connection:%p canAuthenticateAgainstProtectionSpace:%p", m_handle, connection, protectionSpace);
     695    UNUSED_PARAM(connection);
     696
     697    LOG(Network, "Handle %p delegate connection:%p canAuthenticateAgainstProtectionSpace:%@://%@:%u realm:%@ method:%@ %@%@", m_handle, connection, [protectionSpace protocol], [protectionSpace host], [protectionSpace port], [protectionSpace realm], [protectionSpace authenticationMethod], [protectionSpace isProxy] ? @"proxy:" : @"", [protectionSpace isProxy] ? [protectionSpace proxyType] : @"");
    694698
    695699    if (!m_handle)
  • trunk/Source/WebCore/platform/network/mac/ResourceResponseMac.mm

    r145007 r145581  
    3131#import "WebCoreSystemInterface.h"
    3232#import <Foundation/Foundation.h>
     33#import <limits>
    3334#import <wtf/StdLibExtras.h>
    34 #import <limits>
    35 #include <wtf/text/CString.h>
    3635
    3736using namespace std;
Note: See TracChangeset for help on using the changeset viewer.