Closed
Bug 869984
Opened 11 years ago
Closed 11 years ago
Variables View in scratchpad should enable searching
Categories
(DevTools Graveyard :: Scratchpad, defect)
DevTools Graveyard
Scratchpad
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: vporof, Assigned: bbenvie)
References
Details
Attachments
(1 file, 6 obsolete files)
4.26 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
Set searchEnabled to true on instance. Optionally provide custom searchPlaceholder.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
This patch: * `VariablesView.prototype.setRawObject` method which allows setting options * Updates `set VariablesView.prototype.rawObject` to use the above method * Updates the Scratchpad to sort the properties of the inspected rawObject. @vp the title of this bug says to sort, but the content of your comment describes how to enable searching. Perhaps you meant both?
Reporter | ||
Updated•11 years ago
|
Summary: Variables View in scratchpad should enable sorting → Variables View in scratchpad should enable searching
Assignee | ||
Comment 2•11 years ago
|
||
Adds search to the Scratchpad VariablesView.
Attachment #748907 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Changes `VariablesView.prototype.rawObject` setter to always sort instead of complicating things by adding a new method.
Attachment #748973 -
Attachment is obsolete: true
Comment 4•11 years ago
|
||
Anything to do here, Brandon? This has been on the bench for a few weeks.
Assignee | ||
Comment 5•11 years ago
|
||
Rebase and set searchEnabled to true in the constructor flags instead of separately.
Attachment #748975 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
Title the patch. https://tbpl.mozilla.org/?tree=Try&rev=d7b85a7e867e
Attachment #763781 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Add search placeholder text.
Attachment #763787 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Mark it as a patch. <:|
Attachment #763819 -
Attachment is obsolete: true
Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 763822 [details] [diff] [review] WIP6 Review of attachment 763822 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/scratchpad/scratchpad.js @@ +1534,5 @@ > let container = window.document.querySelector("#variables"); > + this.variablesView = new VariablesView(container, { > + searchEnabled: true, > + searchPlaceholder: this._scratchpad.strings > + .GetStringFromName("propertiesFilterPlaceholder") At some point, if you wish, you might want to convert those strings to the L10N helper [0] in ViewHelpers.jsm [1], it makes things look prettier. [0] https://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/widgets/ViewHelpers.jsm#207 [1] https://mxr.mozilla.org/mozilla-central/source/browser/devtools/debugger/debugger-controller.js#1509
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 763822 [details] [diff] [review] WIP6 (In reply to Victor Porof [:vp] from comment #9) > At some point, if you wish, you might want to convert those strings to the > L10N helper [0] in ViewHelpers.jsm [1], it makes things look prettier. Good idea, filed bug 884403. Also, I'm putting you as r?. Let me know if you'd like me to find someone else to review it!
Attachment #763822 -
Flags: review?(vporof)
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Brandon Benvie [:bbenvie] from comment #10) > > Also, I'm putting you as r?. Let me know if you'd like me to find someone > else to review it! OH I AM SO ANGRY RIGHT NOW. Sure man, feel free to ask me as many r? as you want.
Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 763822 [details] [diff] [review] WIP6 Review of attachment 763822 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/shared/widgets/VariablesView.jsm @@ +89,5 @@ > * if you want the variables view to work in sync mode. > */ > set rawObject(aObject) { > this.empty(); > + this.addScope().addItem().populate(aObject, { sorted: true }); Why this change? I don't have anything against it though..
Attachment #763822 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Thanks for the review! (In reply to Victor Porof [:vp] from comment #12) > Comment on attachment 763822 [details] [diff] [review] > WIP6 > > Review of attachment 763822 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: browser/devtools/shared/widgets/VariablesView.jsm > @@ +89,5 @@ > > * if you want the variables view to work in sync mode. > > */ > > set rawObject(aObject) { > > this.empty(); > > + this.addScope().addItem().populate(aObject, { sorted: true }); > > Why this change? I don't have anything against it though.. The title of this bug originally was "...sorting" and that was the first thing I did. Also, you mentioned in IRC that the VariablesView should already be sorted by default, which it isn't when setting a rawObject, so I figured the intent was for it to be like this.
Assignee | ||
Updated•11 years ago
|
Whiteboard: [land-in-fx-team]
Reporter | ||
Comment 14•11 years ago
|
||
(In reply to Brandon Benvie [:bbenvie] from comment #13) Right, I forgot about that! Carry on.
Reporter | ||
Comment 15•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/5b90583b9739
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5b90583b9739
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•