Closed Bug 76001 Opened 25 years ago Closed 25 years ago

prompt method of nsIPrompt interface doesnot use default title when checkMsg is null

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: dsirnapalli, Assigned: ccarlen)

References

Details

Attachments

(1 file)

when checkMsg is null in the below method it should use default title. boolean prompt(in wstring dialogTitle,in wstring text,inout wstring value, in wstring checkMsg, inout boolean checkValue); when i used the test case below var boo = promptObj.prompt("prompt dialog", "text message", val, null, checkbox); its not showing the default title and also its not showing checkbox.
-- reassigned as per jud's suggestion.
Assignee: pchen → ccarlen
Component: XP Apps → Embedding APIs
Yep, according to the comments, that's wrong. I'll fix it to do what it says it will do.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
QA Contact: sairuh → dsirnapalli
The comment in the API will have to change, not the code. The idea was, if checkMsg == null && checkValue != null, to use a default title for the checkbox. Since checkValue is an inout param, it isn't possible to pass null from JS as it is from C++. So, the prompt implementation requires both the message and the value to be non-null in order to show the checkbox.
Dan - can you review this one? The comments in the .idl are just wrong. Using a default checkbox title if the caller passed null seemed like a good idea at some point, but by the time I worked on the implementation had changed my mind.
r=me
*** Bug 75998 has been marked as a duplicate of this bug. ***
Keywords: patch
Whiteboard: needs sr
CC'ing Alec for sr.
sr=alecf
Got sr - ready to go.
Whiteboard: needs sr
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
-- 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

Created:
Updated:
Size: