Closed Bug 16230 Opened 25 years ago Closed 25 years ago

pluglets crash mozilla after reload

Categories

(Core Graveyard :: Java-Implemented Plugins, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: blackconnect, Assigned: blackconnect)

Details

(Keywords: crash)

Attachments

(1 file)

How to reproduce:
-Load simple pluglet.
-Press reload
Mozilla crashes
Status: NEW → ASSIGNED
The reason of this bug is as follows:
We do not call AddRef for our PlugletInstance.
At some point we have 2 reference to our PlugletInstance, butreferenc counter
equal to 1. So after first release() PlugletInstance would be destroyed, after
second release() mozilla would be crashed.

Suggested fix:
call NS_ADDREF for newly created PlugletInstance in
Pluglet::CreatePlugletInstance
Attached patch fix for this bugSplinter Review
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Akhil Arora has reviewed my changes.
As module owner, I will check them in.
Adding crash keyword
Keywords: crash
Verified with Mozilla 0.9.5 (Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 
rv:0.9.5+) Gecko/20011030). 
Mozilla do not crashed after reload.
VERIFIED
Status: RESOLVED → VERIFIED
QA Contact: leila.garin → avm
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: