Closed
Bug 1308566
Opened 8 years ago
Closed 7 years ago
Use the object inspector instead of variables view
Categories
(DevTools :: Console, enhancement, P1)
DevTools
Console
Tracking
(firefox56 verified)
Tracking | Status | |
---|---|---|
firefox56 | --- | verified |
People
(Reporter: linclark, Assigned: nchevobbe)
References
(Depends on 5 open bugs)
Details
(Whiteboard: [console-html])
Attachments
(8 files)
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
Honza
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
Honza
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
We should use the object inspector from the debugger instead of variables view.
Reporter | ||
Updated•8 years ago
|
Priority: -- → P2
Reporter | ||
Updated•8 years ago
|
Whiteboard: new-console
Updated•8 years ago
|
Blocks: enable-new-console
Flags: qe-verify+
Priority: P2 → P3
QA Contact: iulia.cristescu
Whiteboard: new-console → [reserve-new-console]
Updated•8 years ago
|
Priority: P3 → P2
Whiteboard: [reserve-new-console] → [new-console]
Comment 1•8 years ago
|
||
Including the object inspector in reps is being tracked here: https://github.com/devtools-html/devtools-reps/issues/11
Updated•8 years ago
|
Priority: P2 → P3
Whiteboard: [new-console] → [reserve-new-console]
Updated•8 years ago
|
Whiteboard: [reserve-new-console] → [reserve-console-html]
Updated•8 years ago
|
Priority: P3 → P2
Whiteboard: [reserve-console-html] → [console-html]
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
Here's a patch of what ObjectInspector integration could look like in the console: https://reviewboard.mozilla.org/r/152874/diff/1#index_header
This is not ready for proper review, since the reps bundle hasn't landed yet, there are no tests and there need to be some cleanup here. I just want to make sure we're heading in the right direction with this.
So, Brian, Honza, any feedback is welcomed so I can fix possible issues and be ready when the reps bundle land.
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(odvarko)
Flags: needinfo?(bgrinstead)
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review158222
Looks greate, couple of inline comments.
Honza
::: devtools/client/webconsole/new-console-output/actions/messages.js:109
(Diff revision 1)
> type: NETWORK_MESSAGE_UPDATE,
> message,
> };
> }
>
> +function messageObjectPropertiesLoad(id, client, grip) {
Some comments explaining the new actions would be great
::: devtools/client/webconsole/new-console-output/reducers/messages.js:203
(Diff revision 1)
> return state.set("messagesTableDataById", messagesTableDataById.set(id, data));
> +
> + case constants.MESSAGE_OBJECT_PROPERTIES_RECEIVE:
> + return state.set(
> + "messagesObjectPropertiesById",
> + messagesObjectPropertiesById.set(
Clean up of the `messageObjectPropertiesById` is also needed.
Updated•7 years ago
|
Flags: needinfo?(odvarko)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 12•7 years ago
|
||
mozreview-review |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review158552
::: devtools/client/themes/webconsole.css:154
(Diff revision 2)
> }
>
> .message-body > * {
> white-space: pre-wrap;
> word-wrap: break-word;
> + flex-shrink: 0;
Please make this property (and the one below) only apply on the new frontend
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → nchevobbe
Updated•7 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 56.2 - Jul 10
Priority: P2 → P1
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 30•7 years ago
|
||
mozreview-review |
Comment on attachment 8882229 [details]
Bug 1308566 - Fixes broken tests due to the ObjectInspector switch.
https://reviewboard.mozilla.org/r/153328/#review160420
Attachment #8882229 -
Flags: review?(bgrinstead) → review+
Comment 31•7 years ago
|
||
mozreview-review |
Comment on attachment 8884328 [details]
Bug 1308566 - Fix Reps README.
https://reviewboard.mozilla.org/r/155258/#review160422
Attachment #8884328 -
Flags: review?(bgrinstead) → review+
Comment 32•7 years ago
|
||
mozreview-review |
Comment on attachment 8884329 [details]
Bug 1308566 - Remove reps mochitests.
https://reviewboard.mozilla.org/r/155260/#review160424
Attachment #8884329 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Updated•7 years ago
|
Attachment #8881799 -
Flags: review?(bgrinstead)
Attachment #8882030 -
Flags: review?(odvarko)
Updated•7 years ago
|
Attachment #8881799 -
Flags: review?(odvarko)
Comment 33•7 years ago
|
||
mozreview-review |
Comment on attachment 8883499 [details]
Bug 1308566 - Add a mochitest for the ObjectInspector in the console.
https://reviewboard.mozilla.org/r/154392/#review160998
Looks good
::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_object_inspector.js:20
(Diff revision 3)
> + const store = hud.ui.newConsoleOutput.getStore();
> + // Adding logging each time the store is modified in order to check
> + // the store state in case of failure.
> + store.subscribe(() => {
> + const messages = store.getState().messages.messagesById
> + .reduce(function (res, message) {
Could be shortened with:
```
function(res, { id, type, parameters, messageText }) {
res.push({ id, type, parameters, messageText });
return res;
}
```
Attachment #8883499 -
Flags: review?(bgrinstead) → review+
Comment 34•7 years ago
|
||
These look good overall! I want Honza to have a look at the two remaining patches before we land.
One usage note: when evaluating `window.location` I see "undefined" as the preview text in OI (renders "Location" without the patches applied)
Flags: needinfo?(bgrinstead)
Updated•7 years ago
|
Iteration: 56.2 - Jul 10 → 56.3 - Jul 24
Assignee | ||
Comment 35•7 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #34)
> One usage note: when evaluating `window.location` I see "undefined" as the
> preview text in OI (renders "Location" without the patches applied)
Thanks for spotting that.
https://github.com/devtools-html/devtools-core/pull/488 will fix this.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 43•7 years ago
|
||
mozreview-review |
Comment on attachment 8882030 [details]
Bug 1308566 - Release actors from loaded properties.
https://reviewboard.mozilla.org/r/153104/#review161200
Looks good to me, thanks for the patch Nicolas!
R+ assuming Try is green
Honza
Attachment #8882030 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8881799 -
Flags: review?(bgrinstead)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 52•7 years ago
|
||
mozreview-review |
Comment on attachment 8881798 [details]
Bug 1308566 - Update reps bundle to v0.9.
https://reviewboard.mozilla.org/r/152872/#review161204
I quickly scanned through the patch and haven't seen anything suspicious. All these changes went through a review on github.
Honza
Attachment #8881798 -
Flags: review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8881799 -
Flags: review?(odvarko)
Attachment #8881799 -
Flags: review?(bgrinstead)
Assignee | ||
Updated•7 years ago
|
Attachment #8881799 -
Flags: review?(odvarko)
Attachment #8881799 -
Flags: review?(bgrinstead)
Comment 61•7 years ago
|
||
mozreview-review |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review161206
Thanks for workin on this!
Please see couple of inline comments.
Honza
::: devtools/client/themes/webconsole.css:759
(Diff revision 8)
> +}
> +
> +.webconsole-output-wrapper .message-flex-body > .message-body {
> + display: flex;
> + flex-wrap: wrap;
> + max-width: 100%;
Are these style needed? They are overriden/duplicated later in the same file (line 895)
::: devtools/client/webconsole/new-console-output/actions/messages.js:109
(Diff revision 8)
> type: NETWORK_MESSAGE_UPDATE,
> message,
> };
> }
>
> +function messageObjectPropertiesLoad(id, client, grip) {
nit: a comment explaining new actions & logic would be nice.
Attachment #8881799 -
Flags: review?(odvarko)
Assignee | ||
Comment 62•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review161206
> Are these style needed? They are overriden/duplicated later in the same file (line 895)
Can you point me to where you see those styles are overriden ? I can't go to line 895 since the file is only ~860 lines, and I can't find where we have similar rules after here.
> nit: a comment explaining new actions & logic would be nice.
sure
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 67•7 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #62)
> Comment on attachment 8881799 [details]
> Bug 1308566 - Use Object Inspector in Console.
>
> https://reviewboard.mozilla.org/r/152874/#review161206
>
> > Are these style needed? They are overriden/duplicated later in the same file (line 895)
Ah sorry, this came from different patch (also applied).
Honza
Comment 68•7 years ago
|
||
mozreview-review |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review161254
Attachment #8881799 -
Flags: review?(odvarko) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 76•7 years ago
|
||
mozreview-review |
Comment on attachment 8881798 [details]
Bug 1308566 - Update reps bundle to v0.9.
https://reviewboard.mozilla.org/r/152872/#review161266
Does this include the fix from https://github.com/devtools-html/devtools-core/pull/488 ?
Attachment #8881798 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Comment 77•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review161206
> Can you point me to where you see those styles are overriden ? I can't go to line 895 since the file is only ~860 lines, and I can't find where we have similar rules after here.
Honza had another patch applied that added rules. This was not an issue from this patch.
> sure
done
Comment 78•7 years ago
|
||
mozreview-review |
Comment on attachment 8882030 [details]
Bug 1308566 - Release actors from loaded properties.
https://reviewboard.mozilla.org/r/153104/#review161274
Attachment #8882030 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Comment 79•7 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #76)
> Comment on attachment 8881798 [details]
> Bug 1308566 - Update reps bundle to v0.9.
>
> https://reviewboard.mozilla.org/r/152872/#review161266
>
> Does this include the fix from
> https://github.com/devtools-html/devtools-core/pull/488 ?
Yes, it does :)
Here is the hopefully last try push https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d92e0882a0f4896a6ef05e2d121ee1548c9eef3
Comment 80•7 years ago
|
||
mozreview-review |
Comment on attachment 8881799 [details]
Bug 1308566 - Use Object Inspector in Console.
https://reviewboard.mozilla.org/r/152874/#review161276
Attachment #8881799 -
Flags: review?(bgrinstead) → review+
Comment hidden (mozreview-request) |
Comment 82•7 years ago
|
||
mozreview-review |
Comment on attachment 8885359 [details]
Bug 1308566 - Exclude reps.css from browser_parsable_css test.
https://reviewboard.mozilla.org/r/156206/#review161364
Capturing our discussion - since reps is shared with the debugger ui it's using -webkit-user-select. debugger.css is already excluded in this file as well
Attachment #8885359 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Comment 83•7 years ago
|
||
Last TRY push looks good https://treeherder.mozilla.org/#/jobs?repo=try&revision=456f108bf5ebc5b4cc0ad56f5956677dbce53683
Let's land this !
Comment 84•7 years ago
|
||
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c8237d11b29c
Update reps bundle to v0.9. r=bgrins,Honza
https://hg.mozilla.org/integration/autoland/rev/fc543151ddfe
Fix Reps README. r=bgrins
https://hg.mozilla.org/integration/autoland/rev/50f96501291a
Remove reps mochitests. r=bgrins
https://hg.mozilla.org/integration/autoland/rev/f727b5fb76e3
Use Object Inspector in Console. r=bgrins,Honza
https://hg.mozilla.org/integration/autoland/rev/cbf450d41bc4
Release actors from loaded properties. r=bgrins,Honza
https://hg.mozilla.org/integration/autoland/rev/3d4b8196f740
Fixes broken tests due to the ObjectInspector switch. r=bgrins
https://hg.mozilla.org/integration/autoland/rev/aae50b4ec136
Add a mochitest for the ObjectInspector in the console. r=bgrins
https://hg.mozilla.org/integration/autoland/rev/42fbf03c91b7
Exclude reps.css from browser_parsable_css test. r=bgrins
Comment 85•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c8237d11b29c
https://hg.mozilla.org/mozilla-central/rev/fc543151ddfe
https://hg.mozilla.org/mozilla-central/rev/50f96501291a
https://hg.mozilla.org/mozilla-central/rev/f727b5fb76e3
https://hg.mozilla.org/mozilla-central/rev/cbf450d41bc4
https://hg.mozilla.org/mozilla-central/rev/3d4b8196f740
https://hg.mozilla.org/mozilla-central/rev/aae50b4ec136
https://hg.mozilla.org/mozilla-central/rev/42fbf03c91b7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Comment 86•7 years ago
|
||
I can confirm the bug is verified fixed on latest Nightly 56.0a1 (2017-07-17), using Windows 10 x64, Ubuntu 16.04 x64 and Mac OS X 10.11.6.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•