inspect(x) should show x in the appropriate panel
Categories
(DevTools :: Console, enhancement, P1)
Tracking
(firefox71 fixed)
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: jlast, Assigned: jlast)
References
Details
(Keywords: parity-chrome)
Attachments
(1 file, 1 obsolete file)
chrome devtools docs has a good description of how their inspect command works.
inspect(object/function) opens and selects the specified element or object in the appropriate panel: either the Elements panel for DOM elements or the Profiles panel for JavaScript heap objects.
From my experience, the feature is very common for devtools extension authors trying to add links in their UI to the elements panel and debugger. I noticed this yesterday because the new react devtools uses this and it fails in Firefox.
For what it is worth, I believe chrome's dir(object) command is equivalent to how we use inspect.
| Assignee | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
There's a toolbox function that the console don't use: devtools/client/framework/toolbox.js#3414-3439
It does at least select the inspector when we're dealing with an element. I guess this should be augmented to make it works for the React DevTools.
Harald, how urgent does this look?
| Assignee | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Since this causes failures in the new React Devtools, it makes it high on the list. Seems like the fix could be pretty simple as well, so it would be nice to get it into 70.
Updated•6 years ago
|
Comment 6•6 years ago
|
||
Backed out changeset 3853d8979a55 (bug 1575240) for Devtools on devtools/client/webconsole/test/browser/browser_jsterm_inspect.js
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263909178&repo=autoland&lineNumber=4155
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=3853d8979a553067596ab19f07ed5a416ee4b358
Backout:
https://hg.mozilla.org/integration/autoland/rev/5ca811a6a88389b21477a0dc47667310615cd47d
Comment 8•6 years ago
|
||
Backed out changeset d870fdbf200f (bug 1575240) for Devtools failures on devtools/client/webconsole/test/browser/browser_jsterm_inspect.js. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263982089&repo=autoland&lineNumber=6046
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=d870fdbf200f34fa28a6b62114b1901489456eb7
Backout:
https://hg.mozilla.org/integration/autoland/rev/4b87c3aa76fff88567560174f4bd68650d5cc5f9
| Assignee | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Backed out 2 changesets (Bug 1575240) for failures in browser_inspector_menu-06-other.js CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264128080&repo=autoland&lineNumber=8815
Backout: https://hg.mozilla.org/integration/autoland/rev/776a6309e975921cd939ffcf03dc037be499f2eb
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Backed out changeset 204d32b36d7e (bug 1575240) for frequently failing devtools at devtools/client/inspector/test/browser_inspector_menu-06-other.js
Backout: https://hg.mozilla.org/integration/autoland/rev/4bed9794caf24942c017d05a0d24c2c7086d3c98
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=204d32b36d7e2e2e06126b3b08015e4cca2134d8
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264388496&repo=autoland&lineNumber=5478
task 2019-08-31T07:27:55.314Z] 07:27:55 INFO - TEST-PASS | devtools/client/inspector/test/browser_inspector_menu-06-other.js | The duplicated node should be in the markup. -
[task 2019-08-31T07:27:55.314Z] 07:27:55 INFO - Getting the markup-container for node .duplicate + .duplicate
[task 2019-08-31T07:27:55.314Z] 07:27:55 INFO - Buffered messages finished
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/test/browser_inspector_menu-06-other.js | Found markup-container for selector: .duplicate + .duplicate -
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - Stack trace:
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - chrome://mochikit/content/browser-test.js:test_ok:1580
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - chrome://mochitests/content/browser/devtools/client/inspector/test/head.js:getContainerForSelector:308
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - chrome://mochitests/content/browser/devtools/client/inspector/test/browser_inspector_menu-06-other.js:testDuplicateNode:69
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - chrome://mochitests/content/browser/devtools/client/inspector/test/browser_inspector_menu-06-other.js:null:14
[task 2019-08-31T07:27:55.315Z] 07:27:55 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1350
[task 2019-08-31T07:27:55.316Z] 07:27:55 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1385
[task 2019-08-31T07:27:55.316Z] 07:27:55 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1213
[task 2019-08-31T07:27:55.316Z] 07:27:55 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:805
[task 2019-08-31T07:27:55.316Z] 07:27:55 INFO - Not taking screenshot here: see the one that was previously logged
Updated•6 years ago
|
Comment 16•6 years ago
|
||
Comment 17•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 18•6 years ago
|
||
Description
•