Bug 65002

Summary: Get authentication to work with USE(CFNETWORK) on Mac
Product: WebKit Reporter: Pratik Solanki <psolanki>
Component: PlatformAssignee: Pratik Solanki <psolanki>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, beidson, ddkilzer, jberlin, psolanki
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 51836    
Attachments:
Description Flags
Patch ddkilzer: review+

Pratik Solanki
Reported 2011-07-21 18:13:57 PDT
Authentication does not work on Mac with USE(CFNETWORK) because my previous patches would create a new CFURLAuthChallengeRef. This mean that equality checks later in the code (and in CFNetwork) would fail.
Attachments
Patch (3.88 KB, patch)
2011-07-21 18:19 PDT, Pratik Solanki
ddkilzer: review+
Pratik Solanki
Comment 1 2011-07-21 18:19:57 PDT
David Kilzer (:ddkilzer)
Comment 2 2011-07-21 21:02:43 PDT
Comment on attachment 101683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=101683&action=review r=me > Source/WebCore/platform/network/mac/AuthenticationMac.mm:62 > + CFURLAuthChallengeRef m_cfChallenge; Should this be retained using a RetainPtr<CFURLAuthChallengeRef>?
Pratik Solanki
Comment 3 2011-07-21 22:24:49 PDT
(In reply to comment #2) > (From update of attachment 101683 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=101683&action=review > > r=me Thanks! > > Source/WebCore/platform/network/mac/AuthenticationMac.mm:62 > > + CFURLAuthChallengeRef m_cfChallenge; > > Should this be retained using a RetainPtr<CFURLAuthChallengeRef>? I think we should be okay without the RetainPtr. The only one holding a reference to the WebCoreAuthenticationClientAsChallengeSender object is the NSURLAuthenticationChallenge object and if that goes away, there's no way to call core(NSURLAuthenticationChallenge *) method which accesses the m_cfChallenge ivar.
Pratik Solanki
Comment 4 2011-07-21 22:27:30 PDT
Note You need to log in before you can comment on or make changes to this bug.