Closed
Bug 1379689
Opened 8 years ago
Closed 3 years ago
JSON with EDITOR_CONFIG key not visible in netmonitor
Categories
(DevTools :: Netmonitor, defect, P3)
DevTools
Netmonitor
Tracking
(firefox57 fix-optional)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
People
(Reporter: Oriol, Unassigned)
References
Details
Attachments
(1 file)
35 bytes,
application/json
|
Details |
Open netmonitor and load attached testcase.
Go to the Response tab.
Problems:
- EDITOR_CONFIG subtree is not visible
- The other JSON is aligned to the bottom
- The filter textbox is hidden
This is caused by https://dxr.mozilla.org/mozilla-central/rev/6e542037f6d4013f9e0cffd4e8d801790bbe091d/devtools/client/netmonitor/src/components/properties-view.js#100-103
// Skip for editor config
if (level >= 1 && path.includes(EDITOR_CONFIG_ID)) {
return null;
}
TreeView should expose the path components, and then netmonitor should just check pathComponents[1] === EDITOR_CONFIG_ID.
Comment 1•8 years ago
|
||
I can reproduce the problem using STRs from comment #0
Thanks for the report Oriol!
Honza
Priority: -- → P3
Reporter | ||
Comment 2•8 years ago
|
||
Solving this won't be as simple as I thought. The problem is not only that path.includes(EDITOR_CONFIG_ID) searches in the whole path. The editor is loaded by a JSON_CONFIG key at level 1, and the data is at level 2; but the JSON data starts at level 1. And the names of the level 0 keys that contain the JSON or the editor are not known beforehand, because they are L10N strings.
Updated•8 years ago
|
status-firefox57:
--- → fix-optional
Updated•7 years ago
|
Product: Firefox → DevTools
Reporter | ||
Comment 3•3 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•