Closed Bug 75996 Opened 23 years ago Closed 23 years ago

confirmCheck method of nsIPrompt interface doesnot work properly under certain condition.

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)

Details

Attachments

(1 file)

i used the below snippet of code in my javascript testcase.

var checkbox = {value:0};
var boo = promptObj.confirmCheck("confirmcheck dialog",
                                 "Do you want to continue",
                                 "check or uncheck",checkbox);
alert("Checkbox checked: " + checkbox.value);
alert("Confirmation accepted: " + boo);

when the confirm dialog came up i selected checkbox checked and pressed cancel.
the above alert Checkbox checked was showing true(should be false since you 
canceled).
-- Reassigned as per jud's suggestion.
Assignee: pchen → ccarlen
Component: XP Apps → Embedding APIs
True. If the dialog is canceled, nothing should happen with the check value.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
QA Contact: sairuh → dsirnapalli
Dan, can you review?
Whiteboard: review
Only if I get my inbox cleaned out and/or notice the request. Sorry for the 
delay. Sure, r=me. (PS -- the idl says the checkbox parameter in confirmCheck is 
"out", but the code treats it as "inout". Might want to update that as you did 
for confirmEx. Someday.)
> the idl says the checkbox parameter in confirmCheck is "out"
It should be inout. That was bug 75993 which is checked in.

CC'ing Alec for sr.  

easy enough! sr=alecf
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: review
-- working as expected. marking bug as 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: