Closed Bug 669377 Opened 13 years ago Closed 6 years ago

Integer inline preferences have to accept negative numbers

Categories

(Toolkit :: Add-ons Manager, defect)

7 Branch
defect
Not set
minor

Tracking

()

RESOLVED INACTIVE

People

(Reporter: whimboo, Unassigned)

References

Details

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0a1) Gecko/20110630 Firefox/7.0a1

The widget for integer inline preferences does only accept positive numbers at the moment. As per definition 'Integer' also covers negative values. Not sure how often negative numbers are used but I think there will be use cases. If you don't think so we should mark it as unsigned integer. Right now it's confusing.
(In reply to comment #0)
> cases. If you don't think so we should mark it as unsigned integer. Right
> now it's confusing.

Probably that doesn't work because the preferences system doesn't support unsigned integers. So we have to handle negative values.
It's not that visible and probably rarely used. So I don't think we have to track this for Firefox 7.
Severity: normal → minor
The number control accepts negative numbers, if the min attribute is negative. Not sure what the lowest negative number it will take is, but that's unlikely to matter.
Version: 5 Branch → 7 Branch
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Geoff, can you please clarify when you mark bugs as invalid? There can be still cases when extensions would need a negative value for a number field. So why has this bug been marked as invalid?
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Hi there, seems this bug is open for a while now... Anyway as predicted my addon requires the integer field to support input of negative numbers (ex. TZ offset in minutes between a client and a server) which isn't possible at the moment.

Although it's not a big deal to solve it from my side with a custom panel, just mentioning that if it was supported my life would have been a bit easier :)
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: REOPENED → RESOLVED
Closed: 13 years ago6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.