Index: Source/core/dom/DocumentInit.cpp |
diff --git a/Source/core/dom/DocumentInit.cpp b/Source/core/dom/DocumentInit.cpp |
index 90b4dd996f10f06bdde02a381901e8bb5612eabd..7993f6c55e078a0f1361993f1e1edb2ab731ba05 100644 |
--- a/Source/core/dom/DocumentInit.cpp |
+++ b/Source/core/dom/DocumentInit.cpp |
@@ -97,19 +97,6 @@ bool DocumentInit::shouldTreatURLAsSrcdocDocument() const |
return m_parent && m_frame->loader().shouldTreatURLAsSrcdocDocument(m_url); |
} |
-bool DocumentInit::isSeamlessAllowedFor(Document* child) const |
-{ |
- if (!m_parent) |
- return false; |
- if (m_parent->isSandboxed(SandboxSeamlessIframes)) |
- return false; |
- if (child->isSrcdocDocument()) |
- return true; |
- if (m_parent->securityOrigin()->canAccess(child->securityOrigin())) |
- return true; |
- return m_parent->securityOrigin()->canRequest(child->url()); |
-} |
- |
Frame* DocumentInit::frameForSecurityContext() const |
{ |
if (m_frame) |