Closed Bug 158608 Opened 23 years ago Closed 23 years ago

replace the hardcode of "@mozilla.org/embedcomp/dialogparam;1" with NS_DIALOGPARAMBLOCK_CONTRACTID

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Henry.Jia, Assigned: antonio.xu)

References

Details

Attachments

(1 file, 1 obsolete file)

It's not a good idea to refer to NS_DIALOGPARAMBLOCK_CONTRACTID using the hardcoded "@mozilla.org/embedcomp/dialogparam;1". First, the code style is not good. Second, it is more easy to be wrong using the literal than the placehold. Third, if the literal changed someday, you may need to change it everywhere. Although this may not be easy to happen. See also bug 158080 For convenience bug 154047 Assign to Anto for continuous handling
Attached patch V 1.0,please r=? & sr=? (obsolete) — Splinter Review
Henry could you r=? my patch. Thank you.
Comment on attachment 92864 [details] [diff] [review] V 1.0,please r=? & sr=? Thx, Anto. r=henry
Attachment #92864 - Flags: review+
Comment on attachment 92864 [details] [diff] [review] V 1.0,please r=? & sr=? sr=alecf actually, while you're there can you remove NS_DIALOGPARAMBLOCK_IID ? its not used anywhere and its just confusing :) (no need for an extra patch, sr=alecf already applies)
Attachment #92864 - Flags: superreview+
remove NS_DIALOGPARAMBLOCK_IID
Attachment #92864 - Attachment is obsolete: true
Attachment #95225 - Flags: superreview+
Attachment #95225 - Flags: review+
patch checked into trunk
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Blocks: 168910
Over to depstein for verification
QA Contact: mdunn → depstein
Verified patch checkin against Mozilla 1.2b Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021026 build.
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: