Closed
Bug 68024
Opened 25 years ago
Closed 25 years ago
Plugin destruction not completing
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: toml, Assigned: saari)
References
(
URL
)
Details
Attachments
(1 file)
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (WinNT; U)
BuildID: 0000000000
While this bug was found on OS/2, it should be reproducable on any platform.
The fix for defects 65134, 60712, 65129 updated nsObjectFrame.cpp to add Key
Event listeners. During "destroy" processing of the nsObjectFrame class, the
nsPluginInstanceOwner does not successfully remove the itself as a Key Event
listener and therefore the reference count does not reach 0 to allow the Plugin
"destroy" sequence to finish properly.
I discovered this while testing an application named Desktop On Call where a
Java applet (using the Java plugin) checks for an appropriate level of Java and
causes the page to reload with new html if the level is acceptable. The plugin
destruction not completing causes major problems with this application.
The RemoveEventListenerByIID results in the wrong/different flags being checked
to determine removal than were used to add.
Reproducible: Always
Steps to Reproduce:
1. Load a page with a plugin
2. Load a new page
3. During the nsObjectFrame destruction, nsPluginInstanceOwner::Destroy is
called. Step through the key event listener removal to see that it is not
removed.
Actual Results: Application hangs.
Expected Results: Application should not hang.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
The attached patch (id=24683) results in the key event listener being
removed, the refcnt for nsPluginInstanceOwner being properly decremented and the
plugin "destroy" processing happening correctly.
Please review it and check it in if it is ok (I don't have checkin capability).
| Assignee | ||
Comment 4•25 years ago
|
||
Hrm, looks good, r=saari
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Comment 5•25 years ago
|
||
sr=hyatt
| Assignee | ||
Comment 6•25 years ago
|
||
This patch is already checked in (I honestly can't remember if I did it, or it
got in by some other path). Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•