Extremely major all-browser javascript memory leak issue
Starting a couple days ago, the browser i was using (chrome) started getting into weird memory leak situations where the CPU would max out, and ram usage would climb infinitely. I switched to safari -> problem continued. I took the security/software updates to safari that i was holding off on -> problem continued. I reset safari ( safari itself is vanilla with no extensions) -> problem continues. This problem occurs on a vast majority of websites. Next i tried firefox which again had this same issue, however firefox was able to pinpoint the issue to javascript
Error dialog:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
Sure enough, disabling javascript on my various browsers allowed me to browse properly again... other than having no javascript support, which is a huge issue at times. Typically, when i enter a problematic site, what occurs is, my RAM usage starts spiking up and along with it the processor maxes out. How fast this occurs depends on the website, sometimes in a matter of seconds the browser is rendered unresponsive, and sometimes it takes around a minute before im completely frozen. Looking at activity monitor shows that the RAM usage can just continue indefinitely. In safari this comes in the form of the "Safari web content" whereas in chrome, looking at it's internal task manager the window containing the offending tabs grows in size/usage.
http://www.kriesi.at/archives/50-websites-that-make-amazing-use-of-javascript
This link is one i picked out that has near instantaneous effect, and the javascript seems to be related to the LIKE button (well, the error dialog from FF above shows it coming from like.php). This is the case in some other places as well.
Ran a bunch of onyx stuff to clean out my system, did permissions, reset caches, did updates. Only turning off JS avoids the issue, but that is problematic since some sites i visit often cannot function properly without it. Any ideas?
OSX 10.6.8
iMac 2.66GHz core 2 duo
2GB 800Mhz DDR2 SDRAM
Safari-OTHER, Mac OS X (10.6.8)