Security

(public)

User Story

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008041704 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008041704 Minefield/3.0pre
I am one of the maintainers of our 3D rendering extension.
http://www.cmiss.org/cmiss/zinc
The event based shutdown of plugins
https://bugzilla.mozilla.org/show_bug.cgi?id=416953
which I can't see but which delays the shutdown
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/layout/generic&command=DIFF_FRAMESET&file=nsObjectFrame.cpp&rev1=1.639&rev2=1.640&root=/cvsroot
causes a crash as to cleanly
destroy our OpenGL objects we need to make current the OpenGL context
and destroy objects in it. However the gtk objects wrapping the opengl
context have been destroyed already. I have also tried registering for
an unrealize event on the appropriate gtk widgets but this also happens
too late.
I notice that two other plugins have had similar problems which have
been patched by specifically detecting these
Bug 425157 and
Bug 426524.
So if I misname my plugin "Flip4Mac" then my problem goes away.
I guess I'm requesting either a generic method for saying that
plugins require to be shutdown immediately (although given that the
triggering bug is "access denied" maybe there is some reason why this
isn't possible, although they could just follow the misnaming workaround)
or requesting that our small time but open source plugin
is added to the hard coded list. Currently "CMISS Zinc Plugin".
Reproducible: Always
Steps to Reproduce:
1. Install zinc plugin,
ftp://ftp.bioeng.auckland.ac.nz/cmiss/zinc/zinc-0.6.3.2-i686-linux-ff3.xpi
2. Upon restart you should get a one time only install page containing a
3D torso object
3. Quit firefox
Actual Results:
(firefox-bin:19505): GdkGLExt-WARNING **: glXMakeCurrent() failed
CmguiSceneViewer_gtk_unrealize_CB: Notifying CmguiCommandData
CmguiCommandData_closing_scene_viewer_notification: closing scene_viewer count 0
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContextTag'.
(Details: serial 42982 error_code 181 request_code 163 minor_code 11)
(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.)
Expected Results:
Clean shutdown