Closed Bug 287543 Opened 20 years ago Closed 20 years ago

Firefox goes 100% CPU and unresponsive when alert closed after page load

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 225302

People

(Reporter: daern, Assigned: bugzilla)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050220 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 The following HTML (loaded locally or from a server) displays an alert which is repeatedly shown. Once it has been clicked a few times (2 or 3 usually), Firefox goes unresponsive and 100% CPU. Yes, I know the javascript sucks (I actually noticed it on a website on our WAN) but it shouldn't cause a browser crash... <html> <head> <script Language="JavaScript"> function checkBrowser(){ if (navigator.appName != "Microsoft Internet Explorer"){ navi = navigator.appName; ver = navigator.Version; alert("Sorry " + navi + " is an unauthorized browser for this application Please use Microsoft Internet Explorer"); window.location = "http://www.getfirefox.com"; } } </script> </HEAD> <title>Bang!</title> <body onload="checkBrowser()" onfocus="checkBrowser()" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000066" ALINK="#FF0000" VLINK="#000066" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0"> </body> </html> Reproducible: Always Steps to Reproduce: 1. Open the attached HTML (from local PC or server) 2. Click the alert a few times 3. Bang, dead firefox Actual Results: Firefox became unresponsive and started consuming 100% CPU cycles Expected Results: Hmmm, probably displayed the alert ad-infinitum. Reproducable in Firefox 1.0 and 1.0.2
Possibly bug 225302. Does Firefox crash or does it only lock-up?
(In reply to comment #1) > Possibly bug 225302. Does Firefox crash or does it only lock-up? Doesn't crash, just locks up. It's a dupe. Sorry about that :-( *** This bug has been marked as a duplicate of 225302 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.