Web page with JS kills X

view full story

https://bbs.archlinux.org – I just looked at the source code and tried it. The page doesn't contain any exploit or anything and runs like any other application. The code is safe, it won't harm anything. I does crash the X server though.What's happening: The web page just makes a bunch of <canvas> elements of size 2500x2500 and draw a 1700x1700 black rectangle on it. Eventually, if fills up both the video memory and system RAM. On Chromium, it happens that the page fills up my entire RAM very fast and dies because I don't have any swap. On Firefox, it fills my video memory first, which makes X ha (HowTos)