Bug 75996 - nsIPromptService::ConfirmCheck set check value result even when canceled. r=danm,sr=alecf
This commit is contained in:
@@ -233,9 +233,11 @@ nsPromptService::ConfirmCheck(nsIDOMWindow *parent,
|
||||
block->GetInt(eButtonPressed, &tempInt);
|
||||
*_retval = tempInt ? PR_FALSE : PR_TRUE;
|
||||
|
||||
block->GetInt(eCheckboxState, & tempInt);
|
||||
*checkValue = PRBool( tempInt );
|
||||
|
||||
if (*_retval) {
|
||||
block->GetInt(eCheckboxState, & tempInt);
|
||||
*checkValue = PRBool( tempInt );
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user