Firefox Hangs

[http://www.mozilla.com/ 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 [http://www.mozilla.com/ firefox] is not able to play the sound since you have a newer [http://www.linux.org/ Linux] [http://www.kernel.org kernel] (with [http://www.alsa-project.org/ ALSA]).
Install ''libesd-alsa0''. On a [http://www.debian.org/ 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
}
}
</bash>

/etc/esound/esd.conf

<bash>[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=
</bash>

/etc/mozilla-firefox/mozilla-firefoxrc
<bash>FIREFOX_DSP="aoss"</bash>

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

Thanks to stone for this solution.