Closed Bug 946191 Opened 11 years ago Closed 11 years ago

while(1){} hangs entire browser

Categories

(Firefox :: Untriaged, defect)

27 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 516752

People

(Reporter: tmptgr, Unassigned)

Details

(Keywords: hang)

Attachments

(1 file)

Attached file hang_Firefox.html (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

Steps to reproduce:

Run while(1){} in the script console.


Actual results:

Entire browser froze.


Expected results:

Google Chrome spawns another subprocess (that uses an entire CPU core) but otherwise acts as if nothing happened. It might be nice if Firefox proved smarter than that by using the "slow script" dialog.
I have an unsimplified version that also eats all RAM, but simply detecting infinite loops should fix that as well.
Severity: normal → critical
Keywords: hang
Severity: critical → normal
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: