Closed Bug 68024 Opened 25 years ago Closed 25 years ago

Plugin destruction not completing

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: toml, Assigned: saari)

References

()

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.
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).
Keywords: patch
This is not an OS/2 only problem.
OS: OS/2 → All
Hrm, looks good, r=saari
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
sr=hyatt
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
Marking verified per last comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: