It is safari and video related. Also it happens mostly while closing the tab with video. For me disabling flash help but there are quite few say it goes beyond flash. My system freezes for for few seconds than crash. Few meaning around 10 sec.
The Flash and HTML5 video tab switching freezes are different issues. While they're both being discussed in the same thread I think it's easier if the two aren't treated as the same to avoid confusion. Forgive any abruptness that might be coming across - if you feel I might be jumping to conclusions I'd recommend reading the last 12 pages in order to see what led me to this.
I think it's video-related. The other day I was using Messages for a cell phone call. Safari crashed. The phone call kept right on going as if the system hadn't crashed!
Indeed, I've been purposely wording the HTML5 video issue as UI freeze in my comments for the last while, not a system freeze.
(If anyone's not familiar with what a UI is, it's the user interface. In English, this is everything you see on your screen - how OSX is presented to you - and not what it does in the background, calculations, audio, etc. The only bit of the UI that's not freezing is the mouse cursor, which continues to move).
In some of my past comments where I mentioned this I gave some examples of music continuing to play if it was doing so and any video renders (plain English, saving something to video which can take hours) continuing and finishing if I leave the computer frozen for a few hours. I see no visual hint that it's finished rendering but found that it went on as normal when I force a restart. Also, the time display in the top right will stay frozen at the exact moment it happened but any background task that saves time to text (e.g. the console) will show that time was still being kept and saved to various logs after the freeze occurred.
This could mean it's video hardware related, yes, but not enough to prove so. The UI only relies on video hardware for small parts. I would be interested in knowing if the tab closing/switching action is causing a freeze because of trying to draw the new tab or trying to wind down the existing one. Possibly the latter as there's a pattern in that the tab that's being closed/switched from has a HTML5 video, whereas the new tabs share no traits. Does winding down a HTML5 video to draw a new tab in Safari involve a certain part of hardware? Maybe, maybe not. I can't get any further than that yet.