Mozilla Firefox will be stopped by using a recursive function which calls itself by using "setInterval"

RESOLVED DUPLICATE of bug 335256

Status

()

Firefox
General
RESOLVED DUPLICATE of bug 335256
9 years ago
9 years ago

People

(Reporter: Soroush Dalili, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)

Save this code as a HTML file and open it by Mozilla Firefox.
---------
<script>
function recursiveFunc(){setInterval("recursiveFunc()",0);}
recursiveFunc();
</script>
---------

Reproducible: Always

Steps to Reproduce:
Save this code as a HTML file and open it by Mozilla Firefox.
---------
<script>
function recursiveFunc(){setInterval("recursiveFunc()",0);}
recursiveFunc();
</script>
---------
Actual Results:  
Mozilla Firefox will be stopped working.

Expected Results:  
Showing a window to stop the script.

Comment 1

9 years ago
Not a security bug; DoS issues with JS are dime-a-dozen whack-a-mole.
Group: core-security
Whiteboard: DUPEME

Updated

9 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Duplicate of bug: 335256
You need to log in before you can comment on or make changes to this bug.