Index: Source/core/frame/LocalFrame.cpp |
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp |
index 916d83325825e564d987483575ce75016d8227e2..3e97c088adcab4c8129c80b777867bfe3bb98146 100644 |
--- a/Source/core/frame/LocalFrame.cpp |
+++ b/Source/core/frame/LocalFrame.cpp |
@@ -712,8 +712,6 @@ bool LocalFrame::isURLAllowed(const KURL& url) const |
{ |
// We allow one level of self-reference because some sites depend on that, |
// but we don't allow more than one. |
- if (host()->subframeCount() >= FrameHost::maxNumberOfFrames) |
- return false; |
bool foundSelfReference = false; |
for (const Frame* frame = this; frame; frame = frame->tree().parent()) { |
if (!frame->isLocalFrame()) |