Firefox hanging issue on Facebook


I have this problem with Firefox when using Facebook that when I want to close the tab containing facebook it doesn't let me. I mean no matter how many times I middle-click on the tab or use the close button, the tab won't be closed.
I guess the problem is with some javascript code on the page because if I wait long enough it alerts that some script on the page is not responding although the page itself IS generally responsive and ok.
I wonder if anyone has ever faced such a problem? I use Firefox 12 and the problem is consistent across Linux (Ubuntu 12.04) and Windows 7.

Best Answer

I created this userscript to disable the onbeforeunload handlers in facebook. Of course, you need Greasemonkey.