summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLFrameElementBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLFrameElementBase.cpp')
-rw-r--r--WebCore/html/HTMLFrameElementBase.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/WebCore/html/HTMLFrameElementBase.cpp b/WebCore/html/HTMLFrameElementBase.cpp
index 756dd84..fb05e91 100644
--- a/WebCore/html/HTMLFrameElementBase.cpp
+++ b/WebCore/html/HTMLFrameElementBase.cpp
@@ -71,15 +71,8 @@ bool HTMLFrameElementBase::isURLAllowed() const
return false;
}
- // Don't allow more than 200 total frames in a set. This seems
- // like a reasonable upper bound, and otherwise mutually recursive
- // frameset pages can quickly bring the program to its knees with
- // exponential growth in the number of frames.
- // FIXME: This limit could be higher, but because WebKit has some
- // algorithms that happen while loading which appear to be N^2 or
- // worse in the number of frames, we'll keep it at 200 for now.
if (Frame* parentFrame = document()->frame()) {
- if (parentFrame->page()->frameCount() > 200)
+ if (parentFrame->page()->frameCount() >= Page::maxNumberOfFrames)
return false;
}