Closed
Bug 291474
Opened 19 years ago
Closed 19 years ago
simple while(1) { window.alert("This text loops") } keeps firefox looping without being able to break it or whatever.
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
People
(Reporter: jeroen, Assigned: bugzilla)
References
()
Details
(Whiteboard: [sg:dos])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050418 Firefox/1.0.3 (Debian package 1.0.3-1) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050418 Firefox/1.0.3 (Debian package 1.0.3-1) The following piece on a page: <script LANGUAGE="JavaScript"> while (1) { window.alert("Get out get, get out if you can..."); } </script> causes an endless clicking loop and one is not able to do anything against it. The dialog is modal and thus that firefox window, including it's tabs is completely useless. For people browsing with tabs only this will be very annoying. (Unless you disable javascript of course ;) Reproducible: Always Steps to Reproduce: 1. Install firefox 2. Open a page with the above javascript eg http://unfix.org/~jeroen/archive/javascript_loop.html 3. Pray that this bug is fixed, javascript is enabled or that you don't have any important things you still needed to save. Actual Results: Infinite window.alarm()'s are called thus giving a modal messagebox which one can't get away from. Expected Results: Exactly this and that is why it is so silly. What it should have in the dialog is a "Disable continuation of Javascript execution" button somewhere. Or at least allow one to switch to another tab etc. IMHO this is a security problem as this can cause high agitation to users but more importantly it looses your current session, thus open tabs etc, as you need to kill firefox. Also confirmed in MSIE, Konqueror, Opera and others... MSIE problem is not that high as you can ignore/kill that single window, as it currently does not have tabbing. Please fix ;)
Comment 1•19 years ago
|
||
See also bug 123913 and bug 61098 *** This bug has been marked as a duplicate of 59314 ***
Group: security
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Whiteboard: [sg:dos]
Reporter | ||
Comment 2•19 years ago
|
||
This is indeed a dupe, didn't pop up easily in bugzilla weirdly. Anyhow, I hope to see this fixed sooner or later.... bug 59314 was reported almost 5 years ago...
You need to log in
before you can comment on or make changes to this bug.
Description
•