Closed Bug 729055 Opened 12 years ago Closed 6 years ago

GCLI selection options where one startsWith the other clash

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE
Future

People

(Reporter: jwalker, Unassigned)

Details

When defining a command and specifying the type, if  you pass the following data list ['test', 'test2'], it turns out that test2 shadows test1 meaning that I cannot execute the command or click on "ok" when I enter "test". But it works if I enter "test2". Here is the code:

var open = {
        name: "open",
        description: "Open file(s)",
        params: [
        {
            name: "files",
            description: "filename(s)",
            type: { name: 'selection', data: ['test','test2']},
        }
        ],
        exec: function(args, context) {
                alert("ok");
         }
    };
Priority: -- → P2
Target Milestone: --- → Firefox 13
(Reported by Rashi Dhing)
Target Milestone: Firefox 13 → Firefox 14
GCLI Triage.
Target Milestone: Firefox 14 → Firefox 15
Blocks: 745773
No longer blocks: 745773
Target Milestone: Firefox 15 → Firefox 16
Triage, filter on TEABAGS
Target Milestone: Firefox 16 → Firefox 17
Triage: Filter on the TRIAGE keyword.
Target Milestone: Firefox 17 → Future
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Component: Developer Tools: Console → Developer Tools: Graphic Commandline and Toolbar
Resetting priorities because these P* levels are very out of date.
Sorry for the bug spam. Filter on Lobster Thermidor
Priority: P2 → --
Product: Firefox → DevTools
Per bug 1491875, this component has been closed, and the affected code is being removed from Firefox. Closing this bug as incomplete.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.