Closed Bug 138599 Opened 23 years ago Closed 23 years ago

mozilla hangs opening the provided attachment

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 13350

People

(Reporter: andre, Assigned: jst)

Details

Attachments

(2 files)

RC1, wXP #1 file having a JS while(true) loop - does not hang #2 one "}" added - hangs totally this is just about a single bracket, maybe this could be solved...
Attached file this one does not hang
Attached file this one hangs
happens on linux trunk 2002041817 mozilla freezes badly os -> all
OS: Windows 2000 → All
The missing bracket in Comment #1 is a syntax error that actually prevents the script from compiling; that's why we don't hang. Just bring up Mozilla, Tools > Web Development > JavaScript Console, and clear it of all previous errors. Now load the attachment given in Comment #1. You will see this error in the JS Console: Error: missing } after function body Source File: http://bugzilla.mozilla.org/showattachment.cgi?attach_id=80055 Line: 13, Column: 1 When you insert the second bracket, the syntax is now correct, we have an infinite loop, and the browser hangs. It is a valid point, however, to ask that the browser guard against infinite loops. That makes this bug a duplicate of bug 13350, "DOM needs to police JS infinite loops, schedule garbage collection" Reassigning to DOM Level 0 for parity with the duplicate bug. André, thank you for this report and your testcases. You will be cc'ed on bug 13350 so that you can follow its progress -
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
*** This bug has been marked as a duplicate of 13350 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: