diff options
Diffstat (limited to 'WebCore/page/Page.h')
-rw-r--r-- | WebCore/page/Page.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/page/Page.h b/WebCore/page/Page.h index aa7bae1..b931092 100644 --- a/WebCore/page/Page.h +++ b/WebCore/page/Page.h @@ -232,6 +232,12 @@ namespace WebCore { #if ENABLE(INSPECTOR) InspectorTimelineAgent* inspectorTimelineAgent() const; #endif + + // Don't allow more than a certain number of frames in a page. + // 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. + static const int maxNumberOfFrames = 1000; private: void initGroup(); |