News for hackers. Stuff that matters.
Re:Show HN: A stupid hack to crash tab and/or browser by Raphmedia on Wednesday March 11, 2015 @03:01PM (#9186110)
Well, now I have a tab that I cannot close. The whole browser is working correctly except for that tab.

Edit: Chrome, osx

Edit 2: Since I never close my computer and never close my chrome, I've pinned the tab so it's smaller. You have plagued my life for ages.

Re:Show HN: A stupid hack to crash tab and/or browser by starnixgod on Wednesday March 11, 2015 @03:14PM (#9186234)
No crash here. After a couple seconds of grinding Firefox prompts to kill the script.

Linux Mint 17.1 Firefox 36.0

Re:Show HN: A stupid hack to crash tab and/or browser by runn1ng on Wednesday March 11, 2015 @07:08PM (#9188076)
So it seems I am the weird case.

Ok. Thanks for telling me.

I found this out randomly when testing what can and what cannot be on this handler and how gracefully do browsers handle it. It seems that it's not that easy.

Re:Show HN: A stupid hack to crash tab and/or browser by Cowicide on Wednesday March 11, 2015 @04:10PM (#9186811)
On OS X Mavericks 10.9.5 with Safari 7.1.3, it didn't do anything but show a beachball after hitting refresh, but I was able to close the tab without trouble or any detectable negative effect on my browser, etc.
Re:Show HN: A stupid hack to crash tab and/or browser by cs- on Wednesday March 11, 2015 @01:46PM (#9185416)
Chrome on Linux doesn't care either, but cpus at 60-99%
Re:Show HN: A stupid hack to crash tab and/or browser by zeekay on Wednesday March 11, 2015 @01:13PM (#9185160)
At least on OS X, Firefox is as well behaved as you might expect when forcefully triggering an infinite loop on beforeunload.
Re:Show HN: A stupid hack to crash tab and/or browser by runn1ng on Wednesday March 11, 2015 @01:20PM (#9185208)
Interesting.

So it might be a Linux issue. I have reported it anyway.

Re:Show HN: A stupid hack to crash tab and/or browser by cwt on Wednesday March 11, 2015 @01:06PM (#9185126)
ran on macbook pro in chrome. tab went unresponsive for a few seconds when i hit back arrow. waited a second, hit x and a couple seconds later it closed.
Re:Show HN: A stupid hack to crash tab and/or browser by runn1ng on Wednesday March 11, 2015 @01:09PM (#9185137)
OK, it might be a linux thing

I have submitted the thing to bugzilla and chrome bug thing