For some videos, leaving the page causes firefox to crash, with this error message:
(firefox:5207): Gdk-WARNING **: GdkWindow 0xe001de unexpectedly destroyed
The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 14181 error_code 3 request_code 10 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
How to reproduce:
example video: http://video.ted.com/talks/podcast/SaulGriffith_2009_480.mp4
(I have to wait a while (30 seconds) for this bug to occur).
I let the video play, then close the tab,or press "back" button, or close the window. All of these lead to firefox crashing.
I run firefox 3.0.7 (with only a few small trivial patches by the distro)
Here is the "mozconfig" file with which firefox was compiled
---------8<--------------8<--------------8<----------
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-pthreads
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --disable-installer
ac_add_options --enable-xinerama
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-xprint
ac_add_options --enable-strip
ac_add_options --enable-pango
ac_add_options --enable-system-cairo
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-startup-notification
ac_add_options --enable-libxul
ac_add_options --disable-crashreporter
ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9
ac_add_options --enable-safe-browsing
ac_add_options --with-branding=browser/branding/unofficial
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-obj
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export USE_SHORT_LIBNAME=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options USE_SHORT_LIBNAME=1
---------8<--------------8<--------------8<----------
Furthermore, I run xorg-server 1.6.0 and linux 2.6.28.8. These are binary packages downloaded from the Arch Linux repos.
If you need me to provide more information / try a few things, I'll be happy to help.
It appears that stopping video playback before leaving the page prevents the crash.