Closed Bug 334905 Opened 20 years ago Closed 13 years ago

nsObjectFrame::StopPlugin should not call plugin code during frame tree destruction

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dbaron, Unassigned)

Details

Attachments

(1 file)

I found a stack in talkback that shows the Java plugin calling back into Gecko in the middle of frame tree destruction, which may or may not be the cause of the crash. That still seems to me like it shouldn't happen. This means that we need to find some (earlier!?) time to stop plugins.
Severity: normal → critical
This is a known MRJ issue -- it spins the event loop from frame construction too, and we have bugs on that for sure. We could try doing all plugin stuff async as much as we can, I suppose, but what we really need is to document what plugins are allowed to do inside which calls from Gecko.
The talkback log is pretty useless. David, please attach a crashreporterd log for this crash (if you can).
There are several places where the Java Embedding Plugin needs to spin the main thread's event loop: https://bugzilla.mozilla.org/show_bug.cgi?id=324281#c6 Starting the JVM synchronously (as discussed at bug 309122) will allow me to get rid of some of these, but not all of them. As of JEP 0.9.5+c (which fixed bug 324281), I've managed to find a way to stop PL_ProcessPendingEvents() from being re-entered. But apparently there are still some cases where Gecko can (in some sense) be re-entered. There's probably not anything I can do about this. (The JEP's current version is 0.9.5+d.)
> Starting the JVM synchronously ... This should (of course) be "Starting the JVM _asynchronously_ ..."
Does this still occur? Stopping plugins can still spin the event loop, but we've wallpapered over a lot of the issues that causes.
Yeah, probably not during frame destruction since we moved the widget handling stuff to content.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: