by lutusp · 13y ago · 0 comments
True. The current Firefox locks up, then announces a crash:
http://i.imgur.com/vgd8PLV.png
So on that basis, Firefox isn't a "modern browser". :)
Any JavaScript that hogs the thread it's running in will cause this kind of problem. If the thread happens to be the same one the browser is running under, then "crash" is a fair description.
function hog_processor() {
while(true) {
}
}
-- or unintentionally, by not knowing something about programming: function beginner_error_run_forever() {
for(var x = 0;x != 10;x += .1) {
// code here
}
}