Support boolean pref groups for simple-prefs

RESOLVED INCOMPLETE

Status

defect
P2
normal
RESOLVED INCOMPLETE
8 years ago
6 months ago

People

(Reporter: erikvvold, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
This was suggested in the mailing list:

"I want to have a input(checkbox) that has sub-inputs and when the input is unchecked the sub-inputs get disabled."

I'm thinking that we could provide a new type called "boolgroup" which contains an array of any pref types which are all disabled if the bool root pref is disabled, and all enabled if the pref is enabled.

So json would look like:

"preferences": [{
  "name": "prefgroup",
  "type": "boolgroup",
  "title": "This is a group of prefs:",
  "value": false,
  "children": [{
    "name": "pref",
    "title": "Some pref",
    "type": "string",
    "value": ""
  }]
}]

so "pref" would exist but appear disabled in the EM.
Priority: -- → P2
Assignee: nobody → evold
Assignee: evold → nobody
Whiteboard: [good first bug]
currently the expected way to do this would be in options_xul.py, but since python code is going away (hopefully) soon, maybe this isn't a "good first bug", and also maybe it should be re-triaged..
Priority: P2 → --
Whiteboard: [good first bug]
Priority: -- → P2
Duplicate of this bug: 953365

Comment 3

6 months ago
Add-on SDK is no longer supported so resolving bugs as INCOMPLETE
Status: NEW → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.