Changeset 160626 in webkit


Ignore:
Timestamp:
Dec 15, 2013 8:04:10 PM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Expose the certificate chain for the main frame
https://bugs.webkit.org/show_bug.cgi?id=125760

Reviewed by Sam Weinig.

  • UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared certificateChain property.
  • UIProcess/API/Cocoa/WKBrowsingContextController.mm:

(-[WKBrowsingContextController certificateChain]): Added this getter, which calls through
to WebFrameProxy::certificateInfo.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160621 r160626  
     12013-12-15  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Expose the certificate chain for the main frame
     4        https://bugs.webkit.org/show_bug.cgi?id=125760
     5
     6        Reviewed by Sam Weinig.
     7
     8        * UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared certificateChain property.
     9        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
     10        (-[WKBrowsingContextController certificateChain]): Added this getter, which calls through
     11        to WebFrameProxy::certificateInfo.
     12
    1132013-12-15  Andy Estes  <aestes@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextController.h

    r160604 r160626  
    134134@property(readonly) NSString *title;
    135135
     136@property (readonly) NSArray *certificateChain;
    136137
    137138#pragma mark Zoom
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextController.mm

    r160602 r160626  
    4444#import "WKURLRequestNS.h"
    4545#import "WKURLResponseNS.h"
     46#import "WebCertificateInfo.h"
    4647#import "WebContext.h"
    4748#import "WebData.h"
     
    358359{
    359360    return _page->pageLoadState().title();
     361}
     362
     363- (NSArray *)certificateChain
     364{
     365    if (WebFrameProxy* mainFrame = _page->mainFrame())
     366        return mainFrame->certificateInfo() ? (NSArray *)mainFrame->certificateInfo()->certificateInfo().certificateChain() : nil;
     367
     368    return nil;
    360369}
    361370
Note: See TracChangeset for help on using the changeset viewer.