Changeset 267387 in webkit
- Timestamp:
- Sep 21, 2020, 5:37:16 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm (modified) (2 diffs)
-
WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r267385 r267387 1 2020-09-21 Timothy Hatcher <timothy@apple.com> 2 3 Add some WKWebProcessPlugInFrame SPI needed by Safari. 4 https://bugs.webkit.org/show_bug.cgi?id=216809 5 rdar://problem/69336928 6 7 Reviewed by Brian Weinstein. 8 9 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm: 10 (+[WKWebProcessPlugInFrame lookUpFrameFromJSContext:]): Added. 11 (-[WKWebProcessPlugInFrame _securityOrigin]): Added. 12 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: 13 1 14 2020-09-21 Andres Gonzalez <andresg_22@apple.com> 2 15 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
r260709 r267387 51 51 { 52 52 return wrapper(WebKit::WebProcess::singleton().webFrame(handle->_frameHandle->frameID())); 53 } 54 55 + (instancetype)lookUpFrameFromJSContext:(JSContext *)context 56 { 57 return wrapper(WebKit::WebFrame::frameForContext(context.JSGlobalContextRef)); 53 58 } 54 59 … … 109 114 { 110 115 return wrapper(API::FrameHandle::create(_frame->frameID())); 116 } 117 118 - (NSString *)_securityOrigin 119 { 120 auto* coreFrame = _frame->coreFrame(); 121 if (!coreFrame) 122 return nil; 123 return coreFrame->document()->securityOrigin().toString(); 111 124 } 112 125 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h
r242339 r267387 26 26 #import "WKWebProcessPlugInFrame.h" 27 27 28 @class JSContext; 28 29 @class WKWebProcessPlugInBrowserContextController; 29 30 … … 31 32 32 33 + (instancetype)lookUpFrameFromHandle:(_WKFrameHandle *)handle; 34 + (instancetype)lookUpFrameFromJSContext:(JSContext *)context; 33 35 34 36 @property (nonatomic, readonly) WKWebProcessPlugInBrowserContextController *_browserContextController; … … 38 40 @property (nonatomic, readonly) SecTrustRef _serverTrust; 39 41 @property (nonatomic, readonly) NSURL *_provisionalURL; 42 @property (nonatomic, readonly) NSString *_securityOrigin; 40 43 41 44 @property (nonatomic, readonly) WKWebProcessPlugInFrame *_parentFrame;
Note:
See TracChangeset
for help on using the changeset viewer.