Closed Bug 796135 Opened 13 years ago Closed 13 years ago

Provide some obvious UI for scripts filtering

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vporof, Assigned: vporof)

References

Details

Attachments

(2 files, 3 obsolete files)

Currently, there's little indication on how scripts filtering works. The only thing that happens is that the first matched file is selected and the unmatched files are hidden (in an unexpanded menulist). We either need a perpetual-expanded-dropdown-while-filtering, or some other nicer UI. I was thinking of reusing the doorhanger/popup mechanism here as well, since we already have one for operators.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Priority: -- → P3
Obviously this should be keyboard accessible.
Attached patch v1 (obsolete) — Splinter Review
WIP. Doesn't do much.
Attached image looks like this
Attached patch v2 (obsolete) — Splinter Review
Works! Needs a test.
Attachment #689663 - Attachment is obsolete: true
Depends on: 818430
Attached patch v3 (obsolete) — Splinter Review
onClick all the things!
Attachment #689756 - Attachment is obsolete: true
Attached patch v3Splinter Review
Added test.
Attachment #689769 - Attachment is obsolete: true
Attachment #690359 - Flags: review?(past)
Comment on attachment 690359 [details] [diff] [review] v3 Review of attachment 690359 [details] [diff] [review]: ----------------------------------------------------------------- I'm starting to think I'd just use the debugger frontend for coding, since it's growing to a pretty decent clone of Sublime Text! My only gripe with this patch is the slow response in sites like GitHub, where bug 819945 is biting us. ::: browser/devtools/debugger/debugger-toolbar.js @@ +1057,5 @@ > +create({ constructor: FilteredSourcesView, proto: MenuContainer.prototype }, { > + /** > + * Initialization function, called when the debugger is started. > + */ > + initialize: function DVFS_initialize() { I wonder if this will make the debugger frontend slower to appear when opening. We should gather some data first though, before lazy-loading everything.
Attachment #690359 - Flags: review?(past) → review+
(In reply to Panos Astithas [:past] from comment #8) > Comment on attachment 690359 [details] [diff] [review] > v3 > ::: browser/devtools/debugger/debugger-toolbar.js > @@ +1057,5 @@ > > +create({ constructor: FilteredSourcesView, proto: MenuContainer.prototype }, { > > + /** > > + * Initialization function, called when the debugger is started. > > + */ > > + initialize: function DVFS_initialize() { > > I wonder if this will make the debugger frontend slower to appear when > opening. We should gather some data first though, before lazy-loading > everything. I wouldn't worry about it, since the only bottleneck in this function is a document.createElement("panel");. We're doing the same thing with the whole UI anyway, so optimizing here would be a bad place to start :)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Blocks: 798330
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: