Closed Bug 669345 Opened 15 years ago Closed 15 years ago

Add support for radio button elements for inline preferences

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla8

People

(Reporter: whimboo, Assigned: darktrojan)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 3 obsolete files)

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0a1) Gecko/20110630 Firefox/7.0a1 We don't support radio buttons for inline preferences yet. I think that a lot of add-ons would benefit from its availability.
Version: 5 Branch → 7 Branch
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Try run for 64c44d9e8629 is complete. Detailed breakdown of the results available here: http://tbpl.mozilla.org/?tree=Try&rev=64c44d9e8629 Results: success: 13 warnings: 4 Total buildrequests: 17 Builds available at http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/geoff@darktrojan.net-64c44d9e8629
Attached patch patch (obsolete) — — Splinter Review
I wanted to do this without requiring a <radiogroup>, but the radio buttons won't work inside anonymous content. (The try warnings are unrelated.)
Attachment #549058 - Flags: review?(dtownsend)
Attached patch patch with other pref types (obsolete) — — Splinter Review
I've changed the logic to also accept bool or char prefs.
Attachment #549058 - Attachment is obsolete: true
Attachment #549556 - Flags: review?(dtownsend)
Attachment #549058 - Flags: review?(dtownsend)
Blocks: 669390
Attachment #549556 - Flags: review?(dtownsend) → review?(bmcbride)
Comment on attachment 549556 [details] [diff] [review] patch with other pref types Review of attachment 549556 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/mozapps/extensions/content/setting.xml @@ +491,5 @@ > + <![CDATA[ > + let self = this; > + this.radioGroup.addEventListener("command", function() { > + self.valueToPreference(); > + }, false); If you wanted to, you could instead do: this.radioGroup.addEventListener("command", this.valueToPreference.bind(this), false); (I only mention it because its new, few people know about it, and I think it's nicer.)
Attachment #549556 - Flags: review?(bmcbride) → review+
Keywords: checkin-needed
Flags: in-testsuite+
Flags: in-litmus-
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Attached patch patch v3 (obsolete) — — Splinter Review
Attachment #549556 - Attachment is obsolete: true
patching file toolkit/themes/pinstripe/mozapps/extensions/extensions.css Hunk #1 FAILED at 1092 1 out of 1 hunks FAILED -- saving rejects to file toolkit/themes/pinstripe/mozapps/extensions/extensions.css.rej patching file toolkit/themes/winstripe/mozapps/extensions/extensions.css Hunk #1 FAILED at 1114 1 out of 1 hunks FAILED -- saving rejects to file toolkit/themes/winstripe/mozapps/extensions/extensions.css.rej
Keywords: checkin-needed
Attached patch patch v4 — — Splinter Review
Attachment #552309 - Attachment is obsolete: true
Keywords: checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/d7d667d640b2 Noting the reviewer in your commit message is helpful
Target Milestone: --- → mozilla8
Version: 7 Branch → Trunk
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Geoff, the example extension you have uploaded lately as attachment to another bug, is it part of the tree? If yes, where can I find it? I would like to have an updated one with all the new features included. Thanks.
I have updated the other example extension meanwhile on my own. And it looks great. Verified fixed on all platforms with builds like Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0a2) Gecko/20110824 Firefox/8.0a2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: