Closed
Bug 219400
Opened 22 years ago
Closed 20 years ago
remove callers of nsServiceManager:: methods
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla1.8beta1
People
(Reporter: dbaron, Assigned: darin.moz)
References
()
Details
Attachments
(1 file)
177.64 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
nsServiceManager::ReleaseService has been obsolete for ages. Callers should be
replaced with NS_IF_RELEASE.
Assignee | ||
Comment 1•20 years ago
|
||
remove (nearly) all uses of nsServiceManager:: methods.
Assignee: dbaron → darin
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Target Milestone: --- → mozilla1.8beta
Assignee | ||
Updated•20 years ago
|
Attachment #165039 -
Flags: review?(bsmedberg)
Assignee | ||
Comment 2•20 years ago
|
||
the plugin code still uses nsServiceManager::GetGlobalServiceManager for use
with deprecated xpcom-style plugins.
Assignee | ||
Updated•20 years ago
|
Summary: remove callers of nsServiceManager::ReleaseService → remove callers of nsServiceManager:: methods
Updated•20 years ago
|
Attachment #165039 -
Flags: review?(bsmedberg) → review+
Assignee | ||
Comment 3•20 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 4•20 years ago
|
||
if lxr is to be trusted, this missed a file:
/xpfe/components/search/src/nsLocalSearchService.cpp, line 99 -- nsresult rv =
nsServiceManager::GetService(kRDFServiceCID,
/xpfe/components/search/src/nsLocalSearchService.cpp, line 140 --
nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService);
and possibly:
/xpcom/tests/TestServMgr.cpp, line 102 -- err =
nsServiceManager::UnregisterService(kIMyServiceCID);
Assignee | ||
Comment 5•20 years ago
|
||
Thanks biesi,
The nsLocalSearchService.cpp one was real... I must have skipped over that one
somehow. I went ahead and fixed it on the trunk.
> /xpcom/tests/TestServMgr.cpp, line 102 -- err =
> nsServiceManager::UnregisterService(kIMyServiceCID);
This one is actually commented out.
Assignee | ||
Comment 6•20 years ago
|
||
part of this patch was backed-out as a result of the aviary branch landing
Keywords: aviary-landing
Assignee | ||
Comment 7•20 years ago
|
||
The only changes needed were to nsBookmarksService.cpp, and I went ahead and
landed those.
Keywords: aviary-landing
![]() |
||
Comment 8•19 years ago
|
||
This sorta caused bug 336586, through no fault of its own. Before this checkin, the code was just calling a method on a member of a deleted object, and the member was a pointer to a service that had been released. But the service was still kept alive by the service manager, so it sorta kinda worked. After this checkin, the member got nulled out in the destructor, leading to a crash when dereferenced....
Depends on: 336586
You need to log in
before you can comment on or make changes to this bug.
Description
•