Closed
Bug 751836
Opened 13 years ago
Closed 12 years ago
After stepping in the debugger, any open nodes in the property view are collapsed
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 19
People
(Reporter: vporof, Assigned: vporof)
References
Details
Attachments
(1 file, 4 obsolete files)
34.03 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
Because we're rebuilding the tree (and there's kinda no way to do it otherwise).
Fortunately, bug 724229 gives us a nice hierarchy of the previously opened vars/properties in all the scopes.
Chrome does this too, and reopens the tree after a few seconds. I think we can do better.
Assignee | ||
Updated•13 years ago
|
Priority: -- → P3
Assignee | ||
Comment 2•12 years ago
|
||
From the patch:
+ * Emptying this container and rebuilding it immediately afterwards would
+ * result in a brief redraw flicker, because the previously expanded nodes
+ * may get asynchronously re-expanded, after fetching the prototype and
+ * properties from the server.
+ *
+ * To avoid such a behaviour, a normal container list is rebuild, but not
+ * immediately attached to the parent container. The old container list
+ * is kept around for a short period of time, hopefully accounting for the
+ * data fetching delay. In the meantime, any operations can be executed
+ * normally.
Attachment #673723 -
Flags: review?(past)
Assignee | ||
Comment 3•12 years ago
|
||
Experimented with different depths of expanded properties and lowered the empty delay a bit. I think it feels ok. With 200ms we're *really* safe. 100ms still gets us flicker with > 2 levels deep. 150ms seems like a good compromise, but I may be wrong.
Also fixed an issue with the variable-changed-flash-transitions-thing not showing up (d'uh, the node wasn't drawn yet).
Attachment #673723 -
Attachment is obsolete: true
Attachment #673723 -
Flags: review?(past)
Attachment #673736 -
Flags: review?(past)
Assignee | ||
Comment 4•12 years ago
|
||
Properties want flashing too :)
Currently only the .variables had the transition rules in the css. Copied them to the .properties as well.
Attachment #673738 -
Flags: review?(past)
Assignee | ||
Comment 5•12 years ago
|
||
qfolded ftw.
Attachment #673698 -
Attachment is obsolete: true
Attachment #673736 -
Attachment is obsolete: true
Attachment #673738 -
Attachment is obsolete: true
Attachment #673698 -
Flags: review?(past)
Attachment #673736 -
Flags: review?(past)
Attachment #673738 -
Flags: review?(past)
Attachment #674172 -
Flags: review?(past)
Comment 6•12 years ago
|
||
Comment on attachment 674172 [details] [diff] [review]
v2
Review of attachment 674172 [details] [diff] [review]:
-----------------------------------------------------------------
Very nice usability improvement!
::: browser/devtools/debugger/debugger-view.js
@@ +39,5 @@
> this.Variables = new VariablesView(document.getElementById("variables"));
> this.Variables.emptyText = L10N.getStr("emptyVariablesText");
> this.Variables.nonEnumVisible = Prefs.nonEnumVisible;
> this.Variables.eval = DebuggerController.StackFrames.evaluate;
> + this.Variables.lazyEmpty = true;
How come you don't just initialize it to true in VariablesView? I see that head.js already sets it to false for tests, so what am I missing?
Attachment #674172 -
Flags: review?(past) → review+
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Panos Astithas [:past] from comment #6)
> Comment on attachment 674172 [details] [diff] [review]
> v2
>
> Review of attachment 674172 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Very nice usability improvement!
>
> ::: browser/devtools/debugger/debugger-view.js
> @@ +39,5 @@
> > this.Variables = new VariablesView(document.getElementById("variables"));
> > this.Variables.emptyText = L10N.getStr("emptyVariablesText");
> > this.Variables.nonEnumVisible = Prefs.nonEnumVisible;
> > this.Variables.eval = DebuggerController.StackFrames.evaluate;
> > + this.Variables.lazyEmpty = true;
>
> How come you don't just initialize it to true in VariablesView? I see that
> head.js already sets it to false for tests, so what am I missing?
Since the VariablesView is going to be used by other things (scratchpad, webconsole), it may be unwise to have this on by default, since it may yield some unexpected behavior if the source/comments in the jsm aren't carefully read :) Also, I'm not sure yet if those other tools will ever need that functionality, so it's off by default.
Comment 8•12 years ago
|
||
Good point.
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Comment 10•12 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 11•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 19
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•