Changeset 160603 in webkit


Ignore:
Timestamp:
Dec 14, 2013, 3:28:18 PM (11 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Expose WebContext::allowSpecificHTTPSCertificateForHost
https://bugs.webkit.org/show_bug.cgi?id=125738

Reviewed by Mark Rowe.

  • UIProcess/API/Cocoa/WKProcessGroup.mm:

(-[WKProcessGroup _setAllowsSpecificHTTPSCertificate:forHost:]): Added. Calls through to
WebContext::allowSpecificHTTPSCertificateForHost.

  • UIProcess/API/Cocoa/WKProcessGroupPrivate.h: Declared new method.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160602 r160603  
     12013-12-14  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Expose WebContext::allowSpecificHTTPSCertificateForHost
     4        https://bugs.webkit.org/show_bug.cgi?id=125738
     5
     6        Reviewed by Mark Rowe.
     7
     8        * UIProcess/API/Cocoa/WKProcessGroup.mm:
     9        (-[WKProcessGroup _setAllowsSpecificHTTPSCertificate:forHost:]): Added. Calls through to
     10        WebContext::allowSpecificHTTPSCertificateForHost.
     11        * UIProcess/API/Cocoa/WKProcessGroupPrivate.h: Declared new method.
     12
    1132013-12-14  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroup.mm

    r160584 r160603  
    4242#import "WKStringCF.h"
    4343#import "WeakObjCPtr.h"
     44#import "WebCertificateInfo.h"
    4445#import "WebFrameProxy.h"
    4546#import <wtf/RetainPtr.h>
     
    234235}
    235236
     237- (void)_setAllowsSpecificHTTPSCertificate:(NSArray *)certificateChain forHost:(NSString *)host
     238{
     239    _context->allowSpecificHTTPSCertificateForHost(WebCertificateInfo::create(WebCore::CertificateInfo((CFArrayRef)certificateChain)).get(), host);
     240}
     241
    236242#if PLATFORM(IOS)
    237243- (WKGeolocationProviderIOS *)_geolocationProvider
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroupPrivate.h

    r159874 r160603  
    3737
    3838@property(readonly) WKContextRef _contextRef;
     39
     40- (void)_setAllowsSpecificHTTPSCertificate:(NSArray *)certificateChain forHost:(NSString *)host;
     41
    3942#if TARGET_OS_IPHONE
    4043@property(readonly) WKGeolocationProviderIOS *_geolocationProvider;
Note: See TracChangeset for help on using the changeset viewer.