If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

change xpcom so that callers do not need to know that a class is a service

NEW
Unassigned

Status

()

Core
XPCOM
P3
enhancement
15 years ago
5 years ago

People

(Reporter: timeless, Unassigned)

Tracking

({arch})

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
People want to believe that being a service is an implementation detail, but the
fact is that it isn't. There is no way for something to find out if the
implementation of a contract is a service and therefore "must" be accessed by
using getService() instead of createInstance().  Someone suggested using
nsIClassInfo, but the catch 22 is that to use classinfo you need a class which
means either calling getService() or createInstance() -- and in today's world if
you call the wrong one, bad things will happen.

I'll attach a discussion, some ideas and other stuff later, for the time being I
just need this bug so I can reference it elsewhere.
*** Bug 181511 has been marked as a duplicate of this bug. ***
*** Bug 181508 has been marked as a duplicate of this bug. ***
*** Bug 181506 has been marked as a duplicate of this bug. ***
*** Bug 181504 has been marked as a duplicate of this bug. ***
*** Bug 181502 has been marked as a duplicate of this bug. ***
*** Bug 181493 has been marked as a duplicate of this bug. ***
*** Bug 181495 has been marked as a duplicate of this bug. ***
*** Bug 181497 has been marked as a duplicate of this bug. ***
*** Bug 181499 has been marked as a duplicate of this bug. ***

Comment 10

15 years ago
blame me for all the duplicates (timeless most likely got bitten by bug 177326).
(Reporter)

Updated

15 years ago
Blocks: 181518
(Reporter)

Updated

15 years ago
Blocks: 181519
(Reporter)

Updated

15 years ago
No longer blocks: 181518
QA Contact: scc → xpcom

Updated

5 years ago
Assignee: timeless → nobody
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.