Closed
Bug 218021
Opened 21 years ago
Closed 21 years ago
nsIPromptService::ConfirmCheck doesn't set checkValue, if Cancel
Categories
(Core Graveyard :: Embedding: APIs, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: BenB, Assigned: adamlock)
Details
Attachments
(1 file)
753 bytes,
patch
|
adamlock
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Reproduction:
1. Execute:
var checkObj = {value: false};
var answer = GetPromptService().confirmCheck(window,
"Title", "Text", "Checkbox",
checkObj);
dump("checkbox state: " + (checkObj.value ? "on" : "off") + "\n");
2. Check checkbox, press Cancel
Actual result:
checkbox state: off
Expected result:
checkbox state: on
Fix:
embedding/components/windowwatcher/src/nsPromptService.cpp - ConfirmCheck():
- if (*_retval) {
block->GetInt(eCheckboxState, & tempInt);
*checkValue = PRBool( tempInt );
- }
Reporter | ||
Comment 1•21 years ago
|
||
This is important for "Remember this decision" kind of dialogs - you'll want to
remember the declination as well.
Comment on attachment 131573 [details] [diff] [review]
Patch
r=adamlock
Requesting sr on this no-brainer
Attachment #131573 -
Flags: superreview?(bz-vacation)
Attachment #131573 -
Flags: review+
![]() |
||
Comment 4•21 years ago
|
||
Comment on attachment 131573 [details] [diff] [review]
Patch
sr=bzbarsky if those lines are also outdented to the right level.
Attachment #131573 -
Flags: superreview?(bz-vacation) → superreview+
Fix checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•