Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: Source/core/dom/DocumentInit.cpp

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698