firefox doesn't stop this script from using all the memory and crashing a computer

RESOLVED WORKSFORME

Status

()

Core
JavaScript Engine
RESOLVED WORKSFORME
8 years ago
5 years ago

People

(Reporter: chris.b.blay, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12
Build Identifier: 

i have found a simple case in which firefox should probably stop a script due to the page being unresponsive but it doesn't

instead, tons of memory is allocated and if not stopped quickly enough the computer will need to be restarted

Reproducible: Always

Steps to Reproduce:
i've included an html file with example code. simply comment out the last div element to see the problem. it messes up other browsers too but i'm just reporting here for now
(Reporter)

Comment 1

8 years ago
Created attachment 493046 [details]
this will crash firefox if slightly modified
Hmm.  So jquery is handing out an infinite stream of objects here... but the slow script dialog should still come up, and doesn't seem to....
Assignee: nobody → general
Component: General → JavaScript Engine
QA Contact: general → general
(Reporter)

Comment 3

8 years ago
Ya I always thought the target variable would actually change to the next element in the DOM but I guess jQuery just tacks .next() onto its selector and goes with it

Comment 4

5 years ago
using current nightly on windows I don't see crash.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.