Closed Bug 493573 Opened 15 years ago Closed 15 years ago

protection against javascript infinity loops

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 61098

People

(Reporter: deprecationmail, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)

This is a request for a protection against javascript infinity loops. Basically, Firefox would analyze the JS code and if it looks like an infinity loop it should alert the user, asking if he/she would like to run the script or not. Of course, you should be able to disable this check.

Reproducible: Always

Actual Results:  
It runs until the browser crashes.

Expected Results:  
It should alert the user that this script will run forever and eventually crash the browser.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
In my opinion this isn't a duplicate of that bug. This would alert before the script runs, and only for infinity loops.
You need to log in before you can comment on or make changes to this bug.