Closed Bug 785650 Opened 12 years ago Closed 12 years ago

Make it easier to stop searching for scripts in the Debugger

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 18

People

(Reporter: vporof, Assigned: vporof)

References

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(2 files)

Right now, the only way of closing the global search pane is to press ESCAPE or delete what's entered in the "Filter Scripts" searchbox. Let's either add a close button, or hide the search pane when loosing focus.
Status: NEW → ASSIGNED
QA Contact: vporof
Assignee: nobody → vporof
QA Contact: vporof
Attached patch v1 (deleted) — Splinter Review
Attachment #655436 - Flags: review?(rcampbell)
Priority: -- → P3
Blocks: 779732
Comment on attachment 655436 [details] [diff] [review] v1 Rob's leaving!
Attachment #655436 - Flags: review?(rcampbell) → review?(past)
Comment on attachment 655436 [details] [diff] [review] v1 Review of attachment 655436 [details] [diff] [review]: ----------------------------------------------------------------- Nice polish. The only confusing thing that I noticed is that clicking on the empty stack pane would not make the results go away. ::: browser/devtools/debugger/debugger-view.js @@ +263,5 @@ > /** > + * True if the search results container is hidden. > + * @return boolean > + */ > + get hidden() this._pane.hidden, <3 ::: browser/devtools/debugger/test/browser_dbg_scripts-searching-08.js @@ +12,5 @@ > +var gScripts = null; > +var gSearchView = null; > +var gSearchBox = null; > + > +function test() How about a comment explaining the purpose of the test? @@ +43,5 @@ > + > + function runTest() > + { > + if (scriptShown && framesAdded) { > + Services.tm.currentThread.dispatch({ run: testScriptSearching }, 0); executeSoon would be shorter...
Attachment #655436 - Flags: review?(past) → review+
(In reply to Panos Astithas [:past] from comment #4) > Comment on attachment 655436 [details] [diff] [review] > v1 > > Review of attachment 655436 [details] [diff] [review]: > ----------------------------------------------------------------- > > Nice polish. The only confusing thing that I noticed is that clicking on the > empty stack pane would not make the results go away. tl;dr It's a feature. Hmm, I think it's to be expected. Clicking on a stackframe has a high chance of changing the currently shown script, or at least move the caret to a different line number, which will effectively make the currently highlighted search result useless. Even more, I think you can safely assume that clicking on a stackframe means "show me where this happened in the source", and you'd want to see as much context as possible. The global search pane occupies quite a lot of space. > > ::: browser/devtools/debugger/debugger-view.js > @@ +263,5 @@ > > /** > > + * True if the search results container is hidden. > > + * @return boolean > > + */ > > + get hidden() this._pane.hidden, > > <3 > I love js. > ::: browser/devtools/debugger/test/browser_dbg_scripts-searching-08.js > @@ +12,5 @@ > > +var gScripts = null; > > +var gSearchView = null; > > +var gSearchBox = null; > > + > > +function test() > > How about a comment explaining the purpose of the test? > Ok. I'll add a comment in all other related tests to keep things consistent. > @@ +43,5 @@ > > + > > + function runTest() > > + { > > + if (scriptShown && framesAdded) { > > + Services.tm.currentThread.dispatch({ run: testScriptSearching }, 0); > > executeSoon would be shorter... Consistency...
(In reply to Victor Porof [:vp] from comment #5) > (In reply to Panos Astithas [:past] from comment #4) > > Nice polish. The only confusing thing that I noticed is that clicking on the > > empty stack pane would not make the results go away. > > tl;dr It's a feature. > > Hmm, I think it's to be expected. Clicking on a stackframe has a high chance > of changing the currently shown script, or at least move the caret to a > different line number, which will effectively make the currently highlighted > search result useless. Even more, I think you can safely assume that > clicking on a stackframe means "show me where this happened in the source", > and you'd want to see as much context as possible. The global search pane > occupies quite a lot of space. Er, that actually sounds like an argument for fixing this then :-) Note that the behavior I observed was that clicking on the (in my case empty) stack list didn't hide the results.
(In reply to Panos Astithas [:past] from comment #6) > (In reply to Victor Porof [:vp] from comment #5) > > (In reply to Panos Astithas [:past] from comment #4) > > > Nice polish. The only confusing thing that I noticed is that clicking on the > > > empty stack pane would not make the results go away. > > > > tl;dr It's a feature. > > > > Hmm, I think it's to be expected. Clicking on a stackframe has a high chance > > of changing the currently shown script, or at least move the caret to a > > different line number, which will effectively make the currently highlighted > > search result useless. Even more, I think you can safely assume that > > clicking on a stackframe means "show me where this happened in the source", > > and you'd want to see as much context as possible. The global search pane > > occupies quite a lot of space. > > Er, that actually sounds like an argument for fixing this then :-) > Note that the behavior I observed was that clicking on the (in my case > empty) stack list didn't hide the results. Huh, I thought that was happening already. Let's followup since it's a relatively mild improvement.
Attached patch v1.1 (deleted) — Splinter Review
Addressed comments.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: