Closed Bug 270240 Opened 20 years ago Closed 19 years ago

Freeze the nsPromptService ContractID

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 285080
mozilla1.8beta2

People

(Reporter: darin.moz, Assigned: darin.moz)

References

Details

Freeze the nsPromptService ContractID

Now that nsIPromptService is frozen, we also need to freeze the nsPromptService
ContractID.  This needs to be done so that consumers can: 1) access the built-in
nsIPromptService implementation, and 2) override the built-in nsIPromptService
implementation to provide a non-XUL version.

Our embedding examples show people how to override nsPromptService, and
embedders are following our examples, so we need to freeze the ContractID.

Here it is:

#define NS_PROMPTSERVICE_CONTRACTID \
 "@mozilla.org/embedcomp/prompt-service;1"

We should probably create a header file named "nsCPromptService.h" for this, or
since there are other components in the embedcomp module, we could put them all
in one header file (e.g., the WindowWatcher service).
Blocks: 268520
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8beta
Depends on: 99615
It looks like bz fixed this by adding the PromptService's ContractID to
nsEmbedCID.h in bug 285080.

*** This bug has been marked as a duplicate of 285080 ***
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Target Milestone: mozilla1.8beta1 → mozilla1.8beta2
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.