The maximum subframe count check should not be skipped for empty URLs.
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index f6a422e..21f7c5a 100644 (file)
@@ -2487,6 +2487,7 @@ void Document::prepareForDestruction()
         NavigationDisabler navigationDisabler(m_frame);
         disconnectDescendantFrames();
     }
+    RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!m_frame || !m_frame->tree().childCount());
 
     if (m_domWindow && m_frame)
         m_domWindow->willDetachDocumentFromFrame();