Reviewed by Oliver.
[WebKit-https.git] / WebCore / bridge / mac / WebCoreFrameBridge.mm
index c870cbb946473a70cbcace05c17724af76258cce..270ab722b158643e0d8fc70ed36920972b763865 100644 (file)
@@ -2583,6 +2583,11 @@ static NSCharacterSet *_getPostSmartSet(void)
     m_frame->setProhibitsScrolling(prohibits);
 }
 
+- (BOOL)isMainFrame
+{
+    return m_frame->page()->mainFrame() == m_frame;
+}
+
 @end
 
 @implementation WebCoreFrameBridge (WebCoreBridgeInternal)