Closed Bug 124895 Opened 23 years ago Closed 23 years ago

Improper definition of NS_PROMPTSERVICE_CID

Categories

(Core Graveyard :: File Handling, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

Attachments

(1 file)

41 #define NS_PROMPTSERVICE_CID 
	"@mozilla.org/embedcomp/prompt-service;1"

http://lxr.mozilla.org/seamonkey/source/embedding/components/windowwatcher/src/nsPromptService.h#43

42 // {A2112D6A-0E28-421f-B46A-25C0B308CBD0}
43 #define NS_PROMPTSERVICE_CID \
44  {0xa2112d6a, 0x0e28, 0x421f, {0xb4, 0x6a, 0x25, 0xc0, 0xb3, 0x8, 0xcb, 0xd0}}
45 #define NS_PROMPTSERVICE_CONTRACTID \
46  "@mozilla.org/embedcomp/prompt-service;1"
how about some english 
pchen ain't here no mo'.

I think timeless is noting a conflict between two #defines of 
NS_PROMPTSERVICE_CID.
Assignee: pchen → alecf
where is this conflict? I can't read this timeless-speak, what I see looks ok to me.
41 #define NS_PROMPTSERVICE_CID 
        "@mozilla.org/embedcomp/prompt-service;1"

(which happens in a bunch of places:
<http://lxr.mozilla.org/seamonkey/search?string=NS_PROMPTSERVICE_CID%20>
)

and

42 // {A2112D6A-0E28-421f-B46A-25C0B308CBD0}
43 #define NS_PROMPTSERVICE_CID \
44  {0xa2112d6a, 0x0e28, 0x421f, {0xb4, 0x6a, 0x25, 0xc0, 0xb3, 0x8, 0xcb, 0xd0}}
In all the other cases the _CID is a Class ID, in this case, _CID is a string
(contractid).
Assignee: alecf → timeless
Status: NEW → ASSIGNED
Comment on attachment 68910 [details] [diff] [review]
rename the mac/nsOSHelperAppService.cpp NS_PROMPTSERVICE_CID to NS_PROMPTSERVICE_CONTRACTID

ah ok. sr=alecf
Attachment #68910 - Flags: superreview+
What about the other ones?
The other ones are alternative implementations of the promptservice. The fact that they share a ClassID is probably similar to the way that nsLocalFile* share a ClassID. Since you can never have more than one of them it's ok...

I'm not authoritative in that area, CCarlen/DanM/AdamLock can correct me.
All other uses of NS_PROMPTSERVICE_CID in the codebase are legitimate CIDs used
for declaring the service (either the default or some embedding override). It's
unfortunate that that CID needs to be redeclared. See bug 124915.
Attachment #68910 - Flags: review+
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: sairuh → nobody
Verified..
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: