Closed
Bug 529912
Opened 15 years ago
Closed 15 years ago
<setting/> should provide type="integer"
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
fennec1.0
People
(Reporter: sonny, Assigned: vingtetun)
Details
Attachments
(4 files, 1 obsolete file)
52.26 KB,
image/png
|
Details | |
58.77 KB,
image/png
|
Details | |
8.26 KB,
patch
|
Details | Diff | Splinter Review | |
14.54 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.b3pre) Gecko/20091109 Namoraka/3.6b3pre Fennec/1.0b5 <setting/> should provide type="integer" because actually there is no way to manipulate integer pref. Reproducible: Always
Assignee | ||
Comment 1•15 years ago
|
||
Actually we support numeric textbox with inputype="number" on setting-string from setting.xml. (http://mxr.mozilla.org/mobile-browser/source/chrome/content/bindings/setting.xml#204) But the binding didn't fit well at all in fennec. Madhava do you have an idea of the wanted style? - this is the equivalent of https://developer.mozilla.org/en/XUL_Tutorial/Numeric_Controls.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•15 years ago
|
||
(In reply to comment #1) > Actually we support numeric textbox with inputype="number" on setting-string > from setting.xml. > (http://mxr.mozilla.org/mobile-browser/source/chrome/content/bindings/setting.xml#204) But that binding will save to a String pref, not an Integer pref > But the binding didn't fit well at all in fennec. Huh? > Madhava do you have an idea of the wanted style? - this is the equivalent of > https://developer.mozilla.org/en/XUL_Tutorial/Numeric_Controls. Why doesn't the current textbox-showing-a-number style work?
Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2) > (In reply to comment #1) > > Actually we support numeric textbox with inputype="number" on setting-string > > from setting.xml. > > (http://mxr.mozilla.org/mobile-browser/source/chrome/content/bindings/setting.xml#204) > > But that binding will save to a String pref, not an Integer pref true. > > > But the binding didn't fit well at all in fennec. > > Huh? see the attached screenshot > > Madhava do you have an idea of the wanted style? - this is the equivalent of > > https://developer.mozilla.org/en/XUL_Tutorial/Numeric_Controls. > > Why doesn't the current textbox-showing-a-number style work?
Assignee | ||
Comment 4•15 years ago
|
||
I'm currently working on a wip which made numberbox looks like that.
Assignee | ||
Comment 5•15 years ago
|
||
Assignee | ||
Comment 6•15 years ago
|
||
sorry for the spam, i've forgot the image in the previous wip
Attachment #415131 -
Attachment is obsolete: true
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #415155 -
Flags: review?
Assignee | ||
Updated•15 years ago
|
Attachment #415155 -
Flags: review? → review?(mark.finkle)
Updated•15 years ago
|
Attachment #415155 -
Flags: review?(mark.finkle) → review+
Comment 8•15 years ago
|
||
Comment on attachment 415155 [details] [diff] [review] Patch We need to keep the number related attributes on the "string" type for doubles. The new binding should only handle integers, so we should remove the "decimalplaces" attribute from the "int" type. I'll make those changes and land.
Comment 9•15 years ago
|
||
pushed with changes and removed the test setting from browser.xul: https://hg.mozilla.org/mobile-browser/rev/52a6eef433fc
Assignee: nobody → 21
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Post-B5
Comment 10•15 years ago
|
||
Is there a use case for this via an add-on or is this something that's being added in as a nice-to-have?
Reporter | ||
Comment 11•15 years ago
|
||
well, I have integer prefs for my add-on.
You need to log in
before you can comment on or make changes to this bug.
Description
•