Firefox Hangs

[ Firefox] hangs when tab or window containing a flash applet is closed. This only happens with sometimes.

== Possible solutions ==
=== Sound problem ===
The problem can be that [ firefox] is not able to play the sound since you have a newer [ Linux] [ kernel] (with [ ALSA]).
Install ''libesd-alsa0''. On a [ Debian] based system just do:

<bash>apt-get install libesd-alsa0</bash>

Create a file named ''.asoundrc'' in your homedirectory. Enter the following text.

<bash>pcm.card0 {
type hw
card 0
pcm.!default {
type plug
slave.pcm "dmixer"
pcm.dmixer {
type dmix
ipc_key 1035
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000 ##use 41000 here, if you believe your sound is choppy...
bindings {
0 0
1 1


spawn_options=-terminate -nobeeps -as 2 -d default
# default options are used in spawned and non-spawned mode


Run ''gstreamer-properties''and choose ALSA as ''Default Sink'.

Thanks to stone for this solution.