Closed Bug 493815 Opened 16 years ago Closed 16 years ago

Preferences.js module should transparently save fractional numbers

Categories

(Cloud Services :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hello, Unassigned)

Details

The prefs API doesn't support fractional numbers, they get rounded down to an integer. Preferences.js prints a warning in this case, but ideally we should have an API that can transparently save fractional numbers. It's possible to do right now by using the site-specific prefs API, which takes an nsIVariant, and can therefore correctly save/restore pretty much anything, but this is at the cost of not using the regular prefs API (so it's an interop cost).
Myk, any idea where this should be filed? It's not Weave.
I suppose it should go to the jsmodules project bug tracker: https://www.mozdev.org/bugs/enter_bug.cgi?product=jsmodules I have filed it there: https://www.mozdev.org/bugs/show_bug.cgi?id=21060 I'm not sure how it should be resolved here, though. Incomplete? Or maybe it should stay open as a "Weave should update Preferences.js once that module implements this capability" bug?
Component: Weave → General
Product: Mozilla Labs → Weave
Target Milestone: -- → ---
QA Contact: weave → general
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.