Closed
Bug 669390
Opened 14 years ago
Closed 13 years ago
Allow setting a preference value from the menulist inline preferences
Categories
(Toolkit :: Add-ons Manager, enhancement)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla8
People
(Reporter: whimboo, Assigned: darktrojan)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 5 obsolete files)
15.46 KB,
patch
|
Details | Diff | Splinter Review | |
2.90 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0a1) Gecko/20110703 Firefox/7.0a1
Found that while working with the example extension from bug 653637. First, in the test there is no preference connected to that instance of the menulist. Second, even if you set a preference to the setting element, it will not be set or updated. So this element is useless at the moment.
Example code:
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/test/browser/addons/browser_inlinesettings1/options.xul
Also I do not see that we check if the correct preference has been set for any kind of element.
We should consider to probably remove that type of element for Firefox 7. See also the broken styling reported as bug 669342.
Comment 1•14 years ago
|
||
Menulists aren't meant to be linked to preferences right now.
Severity: normal → enhancement
tracking-firefox7:
? → ---
Summary: Menulist of inline preferences do not update specified preference → Allow setting a preference value from the menulist inline preferences
Reporter | ||
Comment 2•14 years ago
|
||
So what is the purpose of menulists then? For what can those be used if I can't permanently store a setting?
Comment 3•14 years ago
|
||
They can be, but it requires manual code to do so at the moment.
Reporter | ||
Updated•14 years ago
|
Version: 5 Branch → 7 Branch
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 4•14 years ago
|
||
This goes on top of my patch for bug 669345.
Attachment #549963 -
Flags: review?(bmcbride)
Updated•14 years ago
|
Attachment #549963 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Just the changes for mobile, plus bug 669345 comment 4, because it's easier to do it here than deal with the bitrot.
Attachment #550270 -
Flags: review?(mark.finkle)
Attachment #550270 -
Flags: review?(bmcbride)
Comment 6•14 years ago
|
||
Comment on attachment 550270 [details] [diff] [review]
changes for mobile
Review of attachment 550270 [details] [diff] [review]:
-----------------------------------------------------------------
r+ on the toolkit stuff
Attachment #550270 -
Flags: review?(bmcbride) → review+
Comment 7•14 years ago
|
||
Comment on attachment 550270 [details] [diff] [review]
changes for mobile
mobile part looks good
Attachment #550270 -
Flags: review?(mark.finkle) → review+
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Backed out due to either this or bug 669345 leaking. No idea whats going on, but it started happening with that push - on all debug builds.
https://hg.mozilla.org/integration/fx-team/rev/51d7ece2bb10
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312863307.1312868107.7800.gz
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312863348.1312867944.7375.gz
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312867017.1312871451.22166.gz
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312862532.1312866829.2356.gz
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312865060.1312868669.9847.gz
http://tinderbox.mozilla.org/showlog.cgi?log=Fx-Team/1312862109.1312866139.32626.gz
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 11•13 years ago
|
||
Found the leak. Also found I'm testing something that doesn't really exist any more.
Attachment #552035 -
Flags: review?(bmcbride)
Comment 12•13 years ago
|
||
Comment on attachment 552035 [details] [diff] [review]
changes to tests
Review of attachment 552035 [details] [diff] [review]:
-----------------------------------------------------------------
Odd that the only thing that caught that typo was a leak.
Could you roll this into the original patch before it's landed? It means slightly bitrotting the mobile patch, but it's nice to not have individual commits be broken if possible.
Attachment #552035 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #549963 -
Attachment is obsolete: true
Attachment #552035 -
Attachment is obsolete: true
Assignee | ||
Comment 14•13 years ago
|
||
Attachment #550270 -
Attachment is obsolete: true
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 15•13 years ago
|
||
Attachment #552310 -
Attachment is obsolete: true
Assignee | ||
Comment 16•13 years ago
|
||
Attachment #552311 -
Attachment is obsolete: true
Updated•13 years ago
|
Keywords: checkin-needed
Comment 17•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/6ece2d6ece8e
http://hg.mozilla.org/integration/mozilla-inbound/rev/2de3cff973b2
Target Milestone: --- → mozilla8
Version: 7 Branch → Trunk
http://hg.mozilla.org/mozilla-central/rev/6ece2d6ece8e
http://hg.mozilla.org/mozilla-central/rev/2de3cff973b2
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 19•13 years ago
|
||
Keywords: dev-doc-complete
Reporter | ||
Comment 20•13 years ago
|
||
Verified fixed with 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.
Description
•