Open Bug 1142427 Opened 9 years ago Updated 2 years ago

Network response doesn't match console output

Categories

(DevTools :: Netmonitor, defect)

38 Branch
x86_64
All
defect

Tracking

(Not tracked)

People

(Reporter: denis, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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
Component: Untriaged → Developer Tools: Netmonitor
OS: Windows 8.1 → Windows 7
OS: Windows 7 → All
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)
Status: UNCONFIRMED → NEW
Ever confirmed: true
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)
Mistakenly filed against Firefox 38 and should be instead 38 Branch. Sorry for the spam. dkl
Version: Firefox 38 → 38 Branch
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: