pluglets crash mozilla after reload

VERIFIED FIXED

Status

Core Graveyard
Java-Implemented Plugins
P3
normal
VERIFIED FIXED
19 years ago
6 years ago

People

(Reporter: Igor Kushnirskiy, Assigned: Igor Kushnirskiy)

Tracking

({crash})

Trunk
x86
Windows NT
crash

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

19 years ago
How to reproduce:
-Load simple pluglet.
-Press reload
Mozilla crashes
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 1

19 years ago
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
(Assignee)

Comment 2

19 years ago
Created attachment 2119 [details] [diff] [review]
fix for this bug
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

19 years ago
Akhil Arora has reviewed my changes.
As module owner, I will check them in.

Comment 4

18 years ago
Adding crash keyword
Keywords: crash

Comment 5

17 years ago
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.

Comment 6

17 years ago
VERIFIED
Status: RESOLVED → VERIFIED
QA Contact: leila.garin → avm
Component: Java-Implemented Plugins → Java-Implemented Plugins
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.