Index: Source/core/frame/Frame.cpp |
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
index ccd11f64b473381f03b898d94647e4b0cf61927e..302a3e1e1328c2dd483c8800fa04416b5323c0b4 100644 |
--- a/Source/core/frame/Frame.cpp |
+++ b/Source/core/frame/Frame.cpp |
@@ -81,8 +81,10 @@ Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) |
Frame::~Frame() |
{ |
+#if ENABLE(OILPAN) |
+ ASSERT(!m_owner); |
+#else |
// FIXME: We should not be doing all this work inside the destructor |
-#if !ENABLE(OILPAN) |
disconnectOwnerElement(); |
setDOMWindow(nullptr); |
#endif |