Closed Bug 253239 Opened 21 years ago Closed 19 years ago

Javascript alerts can completely block the whole application

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 61098

People

(Reporter: tommi.komulainen, Unassigned)

References

()

Details

In http://www.mostannoyingwebpage.com/v1/index2.html you get a sequence of javascript alerts that effectively block the whole application (bug 224454) but what's worse there is no way to escape the neverending sequence. In Mozilla hitting ESC fast enough breaks the alert loop, but with GtkMozEmbed there is no way.
Blocking too many alerts should probably be handled at a higher level.
*** Bug 302787 has been marked as a duplicate of this bug. ***
From bug 302787: <HTML><SCRIPT>while(1) alert('Hi');</SCRIPT><BODY></BODY></HTML> or click on: http://neil.fraser.name/crash2.html That will cause Mozilla (Deer Park Alpha 2), IE (6) and Opera (8) to lock up. This isn't good. BTW, OS can be changed to 'all' (tested on Windows 98 and 2000). What are some plausible solutions for this? My suggestion (not saying it is a good one, just throwing it out here) is that on the third alert, it starts including a checkbox at the bottom of the box which reads "contine running scripts".
Assignee: blizzard → general
Component: Embedding: GTK Widget → JavaScript Engine
OS: Linux → All
QA Contact: pavlov → general
Version: 1.7 Branch → Trunk
A real-life example: http://www.imyourqueen-.blogspot.com/ This page trapped me when entered via the Blogger "Next Blog" ****-shoot. Most reliable escape seems to be to hold down ESC until JS quits -- but most users won't think of that. I know I didn't!
*** This bug has been marked as a duplicate of 61098 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.