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)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 18
People
(Reporter: vporof, Assigned: vporof)
References
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(2 files)
(deleted),
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
QA Contact: vporof
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → vporof
QA Contact: vporof
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #655436 -
Flags: review?(rcampbell)
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Priority: -- → P3
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 655436 [details] [diff] [review]
v1
Rob's leaving!
Attachment #655436 -
Flags: review?(rcampbell) → review?(past)
Comment 4•12 years ago
|
||
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+
Assignee | ||
Comment 5•12 years ago
|
||
(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...
Comment 6•12 years ago
|
||
(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.
Assignee | ||
Comment 7•12 years ago
|
||
(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.
Assignee | ||
Comment 8•12 years ago
|
||
Addressed comments.
Assignee | ||
Comment 9•12 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → Firefox 18
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•