Closed Bug 367792 Opened 18 years ago Closed 17 years ago

Crash when running Java unit tests that call initXPCOM

Categories

(Core Graveyard :: Java to XPCOM Bridge, defect)

Other Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: jhpedemonte)

References

Details

(Keywords: verified1.8.1.4)

Attachments

(1 file)

Attached patch patchSplinter Review
When running any of the Java tests from bug 350886 that call |Mozilla.initXPCOM()|, test crashes when trying to access the directory service provider.

The issue was that I was deleting the provided service provider immediately after calling |NS_InitXPCOM2()| (how did this code ever work?).  Fixed that code to properly use an nsCOMPtr.  Also fixed a related issue in |Mozilla.shutdownXPCOM()|.

Patch attached.
Checked in to trunk.  -> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment on attachment 252386 [details] [diff] [review]
patch

Asking for 1.8.1.3 approval.  Fix for crasher.  XULRunner only.
Attachment #252386 - Flags: approval1.8.1.3?
Comment on attachment 252386 [details] [diff] [review]
patch

approved for 1.8.1.4, a=dveditz for release-drivers
Attachment #252386 - Flags: approval1.8.1.4? → approval1.8.1.4+
Checked in to MOZILLA_1_8_BRANCH.
Keywords: fixed1.8.1.4
Javier:  If you have verified this fix with the latest 2.0.0.4 rc builds, can you update the keywords with "verified1.8.14"?  Thanks!
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: