Closed Bug 89300 Opened 23 years ago Closed 22 years ago

Evil recursive frames hangs browser (nested frames crash)

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 136580
Future

People

(Reporter: sjburges, Assigned: john)

References

()

Details

(Keywords: crash, hang)

This page (crafted when bored in the summer of 95) recursively calls itself
inserting itself into frames.

Probably no such thing as a good way to handle this, but it does have a
particularlly undesirable result for mozilla.
On Win98:
- In IE, the user interface becomes unresponsive and I have to ctrl+alt+del the 
browser.
- In Moz 06/22, the throbber keeps resetting, but the stop button does work.  
If I allow the page to keep loading, I get a crash after about 15 seconds.

See also bug 8065, "crash on infinitely recursive frames site", which is marked 
as having been fixed in March.
Assignee: asa → pollmann
Component: Browser-General → HTMLFrames
QA Contact: doronr → amar
Marking NEW.
Severity: minor → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash, hang
OS: Linux → All
Hardware: PC → All
This is probably causing a crash due to the much higher branching factor than 
in bug 8065 (where a single frame was nested recursively versus the exponential 
nesting of four frames, as in this case). The fix in 8065 was to limit the 
depth of frame nesting - perhaps the fix here is to limit the total number of 
frames as well.

Will look at this in the future...
Status: NEW → ASSIGNED
Target Milestone: --- → Future
I think the correct fix here would be to make Gecko not crash when it has too
many frames.  I think it's likely that fixing this crash for the
way-too-many-frames case will also fix other crashes.
On WinNT 4.0, I don't see a crash or hang, although *leaving* the site is very slow.
This URL 

http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-doc/index.html/

causes today's nightly Mozilla and NS 6.1 to go into an infinite recursive loop
of ever smaller nested frames Windows 2000, eventually leading to "This program
is not responding". ie, a hang which requires an "End Task" to get out of it.

Yes, the / on the end of the URL is there - it works fine without it. The / was
a typo on my part.

This page is interesting because it doesn't deliberately try to cause a
recursive nest as far as I can tell. There's a reference to a "doclet" when I
view source in IE, so perhaps some server side code is getting confused by the
slash.
Win2K IE 5.5sp1 nests around twice then stops nesting any further.

Regardless of any bugs in Sun's server side code, Mozilla should handle this in
a graceful fashion akin to what IE does.
*** Bug 102369 has been marked as a duplicate of this bug. ***
Bulk reassignin HTML FRAME/IFRAME bugs to Eric.
Assignee: pollmann → evaughan
Status: ASSIGNED → NEW
Duplicate of bug 8065?
Summary: Evil recursive frames hangs browser → Evil recursive frames hangs browser (nested frames crash)
Bulk re-assigning all of Eric's HTMLFrame bugs to John.
Assignee: eric → jkeiser
*** Bug 122375 has been marked as a duplicate of this bug. ***
*** Bug 139108 has been marked as a duplicate of this bug. ***
Similar problem exists with OBJECT tags, see dup bug 139108 and bug 136580.
Depends on: 136580
*** Bug 159441 has been marked as a duplicate of this bug. ***
None of the test-cases crashes my mozilla version 1.1.
Is this bug fixed or are the testcases gone?
By the definitions on <http://bugzilla.mozilla.org/bug_status.html#severity> and
<http://bugzilla.mozilla.org/enter_bug.cgi?format=guided>, crashing and dataloss
bugs are of critical or possibly higher severity.  Only changing open bugs to
minimize unnecessary spam.  Keywords to trigger this would be crash, topcrash,
topcrash+, zt4newcrash, dataloss.
Severity: major → critical

*** This bug has been marked as a duplicate of 136580 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.