Closed Bug 571873 Opened 14 years ago Closed 14 years ago

firefox does not respond when a script starts an infinite loop

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 61098

People

(Reporter: marcobiscaro2112, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3

When accessing a site that has an script with an infinite loop, Firefox stops to respond.

Example:

<html>
<script>
for (;;)
alert("Hello, world!")
</script>
</html>

When Firefox loads a page like this, there is no option to stop the script (like other browsers: Opera and Chrome). The suggestion is to add a checkbox in the alert window like: "Block script on this page".

Reproducible: Always

Steps to Reproduce:
1. Opens a site with a infinite loop (like this one: http://programacaoemjava.blogspot.com/2010/06/infinite-loop.html)
Actual Results:  
You can not stop the script unless you kill Firefox' process (which turns Firefox unusable).

Expected Results:  
There should be an option to block scripts on the page.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.