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)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: bugzilla, Assigned: ccarlen)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
|
2.02 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 2•25 years ago
|
||
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
| Assignee | ||
Comment 3•25 years ago
|
||
| Assignee | ||
Comment 4•25 years ago
|
||
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
| Reporter | ||
Comment 5•25 years ago
|
||
Thanks for fixing, r=blake
| Assignee | ||
Comment 6•25 years ago
|
||
CC'ing Alec for sr.
Comment 7•25 years ago
|
||
sr=alecf
| Assignee | ||
Comment 8•25 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 10•25 years ago
|
||
reassign qa contact to Dharma. He's working with prompts.
QA Contact: mdunn → dsirnapalli
Comment 11•25 years ago
|
||
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
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
•