Open
Bug 1142427
Opened 9 years ago
Updated 2 years ago
Network response doesn't match console output
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: denis, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
27.93 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150305021524 Steps to reproduce: served json ('application/json', single post request), then look into Developer Tools->Net Monitor->Response testcase producing same results http://jsfiddle.net/kbb64deL/1/ my ff version is ff developer edition, 38.0a2 (2015-03-10) Actual results: The problem is NetMon->Response displays array field as an object when such array field contains only one element which is object. (see testcase). Console output works fine. Expected results: json array should always be displayed as an array
Reporter | ||
Updated•9 years ago
|
Component: Untriaged → Developer Tools: Netmonitor
Reporter | ||
Updated•9 years ago
|
OS: Windows 8.1 → Windows 7
Comment 1•9 years ago
|
||
For some reason the netmonitor displays what can be seen in the attachment, while the web console correctly shows: Object { foo: Array[1], bar: Array[2] } I don't know offhand whether this is a netmonitor issue or a VariablesView one, but maybe Victor does?
Flags: needinfo?(vporof)
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•9 years ago
|
||
WCU_getObjectClassName is incorrectly determining the class name for [{}]. Cu.import("resource://gre/modules/devtools/Loader.jsm"); let utils = devtools.require("devtools/toolkit/webconsole/utils").Utils; utils.getObjectClassName([{}]) // Object utils.getObjectClassName([{},{}]) // Array
Flags: needinfo?(vporof)
Comment 3•9 years ago
|
||
I don't understand this: https://dxr.mozilla.org/mozilla-central/source/toolkit/devtools/webconsole/utils.js#519
Comment 4•9 years ago
|
||
Mistakenly filed against Firefox 38 and should be instead 38 Branch. Sorry for the spam. dkl
Version: Firefox 38 → 38 Branch
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
Blocks: netmonitor-response-sidepanel
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•