Closed
Bug 108052
Opened 23 years ago
Closed 22 years ago
nsJSContext destructor uses getService to shutdown; suggest using WeakRef
Categories
(SeaMonkey :: Preferences, defect)
SeaMonkey
Preferences
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 105115
Future
People
(Reporter: depman1, Assigned: jst)
References
Details
this is causing warning msg when shutting down Mozilla. See bug 107391).
reproduced in 10/27 debug mozilla build.
1. Set break points in nsWarning messages in nsComponentManager.cpp;
nsComponentManagerImpl::GetService() and
nsComponentManagerImpl::GetServiceByContractID() (currently lines 1750 & 2075).
2. Launch Mozilla with F5.
3. Quit Mozilla.
4. Press F5 until you see stack trace including destructor for
nsJSContext()
5. Doubleclick on line for ~nsJSContext():
nsJSContext::~nsJSContext() line 414 + 28 bytes
Result: In destructor for nsJSContext, creates nsIPref object by calling
do_GetService() to unregister. Uses xpconnect to shutdown nsJSContext service.
Suggest registering a weakReference and using that to shutdown.
Assignee | ||
Comment 3•23 years ago
|
||
Future for now...
Status: NEW → ASSIGNED
OS: Windows NT → All
Hardware: PC → All
Target Milestone: --- → Future
Reporter | ||
Updated•22 years ago
|
QA Contact: depstein → carosendahl
*** This bug has been marked as a duplicate of 105115 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•