Closed Bug 77467 Opened 25 years ago Closed 25 years ago

Prompt service considers 0 a string instead of null

Categories

(Core Graveyard :: Embedding: APIs, defect, P1)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: bugzilla, Assigned: ccarlen)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

A bunch of prompts now come up with initial values of 0 due to the change to nsIPromptService. The initial value is now an inout object, and when this change was done this object was set to a default value of 0 (in some cases this was done incorrectly, as shown in the url above in this report -- the 0-valued object used for the checkbox result was instead used for the initial value). However, the prompt service seems to consider this a string. I think 0 should be null and '0' or "0" a string, but if we don't want to do that, please fix the callers' objects to have null values.
-> Conrad
Assignee: adamlock → ccarlen
Oof, I was wrong. When the callers want to pass a null inout string, they should pass {value:null} instead of {value:0}. Fixed search-editor.js. Will find other occurances of this and post a patch.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Blake - can you review? I think I found all the callers by searching for "prompt" in *.js in my tree. Let me know if I missed something.
Priority: -- → P1
Thanks for fixing, r=blake
CC'ing Alec for sr.
sr=alecf
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
*** Bug 75483 has been marked as a duplicate of this bug. ***
reassign qa contact to Dharma. He's working with prompts.
QA Contact: mdunn → dsirnapalli
verified pref-formatting.js and editor.js.the initial values have been changed to null instead of 0. marking the bug 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: