https://bugs.webkit.org/show_bug.cgi?id=144705
Reviewed by Sam Weinig.
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(-[WKWebProcessPlugInFrame _parentFrame]): Added this getter.
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: Declared new
_parentFrame property.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183888
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-05-06 Dan Bernstein <mitz@apple.com>
+
+ No way to get a WKWebProcessPlugInFrame’s parent frame
+ https://bugs.webkit.org/show_bug.cgi?id=144705
+
+ Reviewed by Sam Weinig.
+
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
+ (-[WKWebProcessPlugInFrame _parentFrame]): Added this getter.
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: Declared new
+ _parentFrame property.
+
2015-05-06 Timothy Horton <timothy_horton@apple.com>
Fix the build.
return [wrapper(API::FrameHandle::create(_frame->frameID()).leakRef()) autorelease];
}
+- (WKWebProcessPlugInFrame *)_parentFrame
+{
+ WebFrame *parentFrame = _frame->parentFrame();
+ return parentFrame ? wrapper(*parentFrame) : nil;
+}
+
- (BOOL)_hasCustomContentProvider
{
if (!_frame->isMainFrame())
@property (nonatomic, readonly) NSArray *_certificateChain;
@property (nonatomic, readonly) NSURL *_provisionalURL;
+@property (nonatomic, readonly) WKWebProcessPlugInFrame *_parentFrame;
+
@end
#endif // WK_API_ENABLED