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)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: dsirnapalli, Assigned: ccarlen)
References
Details
Attachments
(1 file)
|
1.70 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•25 years ago
|
||
-- reassigned as per jud's suggestion.
Assignee: pchen → ccarlen
Component: XP Apps → Embedding APIs
| Assignee | ||
Comment 2•25 years ago
|
||
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
| Assignee | ||
Comment 3•25 years ago
|
||
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.
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
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.
| Assignee | ||
Comment 8•25 years ago
|
||
CC'ing Alec for sr.
Comment 9•25 years ago
|
||
sr=alecf
| Assignee | ||
Comment 11•25 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•