Closed
Bug 83854
Opened 24 years ago
Closed 24 years ago
JavaScript code can enter infinite loop
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: jg, Assigned: jst)
Details
(Keywords: hang, testcase)
Attachments
(1 file)
1.96 KB,
text/html
|
Details |
I've been experimenting with some JavaScript, and wrote a loop that had the
age-old fatal mistake of not changing (incrementing) it's conditional value.
Running the script had mozilla hing, with 100% CPU. I asked in #mozilla if any
bugs were filed to ensure the JS Engine couldn't get stuck this way, and was
told it already was and that I should file a bug.
I'll attach a testcase as soon as I've taken the fix out of my copy...
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
OK testcase attached. To reproduce, load it, click on an option in the left
select list, and hit the 'Move Item' button - infinite loop begins.
I don't care if the JS is crap (work in progress! ;)), it shouldn't hang the
browser... Upping to Major on that point.
Comment 3•24 years ago
|
||
--> DOM
As I understand it:
JS Engine provides a branch callback at the bottom of loops.
It's up to the embedding to decide what to do with it -
Assignee: brendan → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Reporter | ||
Updated•24 years ago
|
Keywords: mozilla0.9.2,
mozilla0.9.3
Assignee | ||
Comment 4•24 years ago
|
||
*** This bug has been marked as a duplicate of 13350 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•