Closed Bug 116495 Opened 24 years ago Closed 23 years ago

numeral zero disappears in Prefs | Composer | maximum number of pages listed

Categories

(SeaMonkey :: Preferences, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: contact2009, Assigned: samir_bugzilla)

Details

(Keywords: helpwanted, polish, regression)

Attachments

(1 file)

Actual behavior: Go to Preferences | Composer | Recent Pages Menu | Maximum Number of Pages Listed, and set it to 0 (zero). Close preferences. Go back to that setting. See that the box has no value at all. The box is totally white. Expected behavior: Go to Preferences | Composer | Recent Pages Menu | Maximum Number of Pages Listed, and set it to 0 (zero). Close preferences. Go back to that setting. See that 0 (zero) is still listed.
charley?
Assignee: sgehani → cmanske
QA Contact: sairuh → sujay
i'm wondering if this is expected behavior. but i can certainly understand being consistent and displaying '0' rather than a blank textfield. also see this on linux, 2001.12.21.08 comm bits.
Severity: normal → minor
Keywords: polish
OS: Windows 98 → All
Hardware: PC → All
The pref value is correctly stored as "0". The problem is when filling in that value in the editfield. The code that does that is not Composer-specific, but is done by the global "prefs dialog" code, which reads/sets the pref values via the widget IDs in the "_elementIDs" array in pref-composer.xul. It probably is testing for "true" before setting the value, so the "0" is preventing the editfield from display that numeral.
Assignee: cmanske → ben
samir, would you be able to fix this? punt as needed!
Assignee: ben → sgehani
morse, please r. alecf, please sr.
Status: NEW → ASSIGNED
Keywords: patch, regression, review
Priority: -- → P3
Target Milestone: --- → mozilla0.9.8
Comment on attachment 63320 [details] [diff] [review] Don't test for null since values can be ints in the generic_set() call. r=morse
Attachment #63320 - Flags: review+
Comment on attachment 63320 [details] [diff] [review] Don't test for null since values can be ints in the generic_set() call. hmmm.. I think we had problems with this before where string prefs became "null" if they didn't have a default value.. can you check some other pages on a new profile, see if you see "null" anywhere?
Yup, I had a similar afterthought. So I'm thinking we'll check for null and maybe even an empty string ("") but if it's a 0 we should let it through. I'll retest with a modified patch. Thanks for calling this out.
Keywords: patch, review
Target Milestone: mozilla0.9.8 → mozilla0.9.9
-> Future
Keywords: helpwanted
Target Milestone: mozilla0.9.9 → Future
Keywords: mozilla1.0.1
Keywords: nsbeta1, patch
Marking nsbeta1- per Nav triage team.
Keywords: nsbeta1nsbeta1-
It's now called "maximum number of pages listed" in Edit | Preferences | Composer.
Keywords: mozilla1.1
Summary: numeral zero disappears in prefs: recent pages menu: maximum number → numeral zero disappears in Prefs | Composer | maximum number of pages listed
This is fixed in trunk at latest by build ID: 2002062713. Resolving Worksforme. Thank you for fixing this!
This is fixed on trunk. It doesn't seem important enough to go into the branch. Thus, it should be resolved fixed, rather than left open.
Can this be resolved fixed to get it off the radar?
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: