internal JSObjectBase(CefWebFrameCore context) { this.context = context; // FIXME: for safety we will subscribe here to context event, and when frame context is cleared/disposed // then we unbind this object from V8 }
private void ClearMainFrame() { if (this.mainFrame != null) { this.mainFrame.Dispose(); this.mainFrame = null; } }
internal void AttachMainFrame(CefFrame frame) { ClearMainFrame(); this.mainFrame = new CefWebFrameCore(this, frame); }