Hacker News new | ask | show | jobs
by lomnakkus 4081 days ago
It's completely trivial to write a "consumes-100%-CPU" JS script. I'm sure people usually don't do it intentionally, but I happened to encounter two such scripts on two separate domains today[1]. The surprising thing is Firefox managed to kill the first one, but not the second one -- after being completely unresponsive for 30s, mind you. It just hung when I pressed the "Stop script" (or whatever the button was labeled). Had to kill the whole FF process and restart it, being quick to close the two tabs that were causing trouble.

This is absurd. Apart from anything else FF needs to be better at protecting its users, and that includes separate-process-per-tab. (Ideally, it should be sandboxes, but honestly I'd settle for "separate processes" at this point in time.)

[1] One of them was http://www.xojane.com/