Closed
Bug 883345
Opened 11 years ago
Closed 11 years ago
Undefined values aren't properly displayed in the debugger's variables view
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: vporof, Assigned: vporof)
Details
Attachments
(2 files, 1 obsolete file)
24.96 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
24.96 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
STR: 1. Open debugger on http://htmlpad.org/debugger/ 2. Click me 3. Expand the |b| variable or Scroll down to inspect the undefined member of the window scope or Add a "undefined" (without quotes" watch expreesion No value is displayed for undefined variables :(
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Priority: -- → P2
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #762884 -
Flags: review?(past)
Comment 2•11 years ago
|
||
Comment on attachment 762884 [details] [diff] [review] v1 Review of attachment 762884 [details] [diff] [review]: ----------------------------------------------------------------- This is actually a server bug. The protocol specifies how undefined values should be transferred, but I must have botched it: https://wiki.mozilla.org/Remote_Debugging_Protocol#Grips In this case the server's response for a prototypeAndProperties request on object "b" is: { "from": "conn0.obj50", "prototype": { "type": "object", "class": "Object", "actor": "conn0.obj62", "extensible": true, "frozen": false, "sealed": false }, "ownProperties": { "a": { "configurable": true, "enumerable": true, "writable": true, "value": 1 }, "xxx": { "configurable": true, "enumerable": true } }, "safeGetterValues": {} } I bet all of our unit tests for undefined values deal with arguments, not variable properties, otherwise we should have caught this long ago. Are you going to look into this or do you want me to?
Attachment #762884 -
Flags: review?(past) → review-
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Panos Astithas [:past] from comment #2) > I bet all of our unit tests for undefined values deal with arguments, not > variable properties, otherwise we should have caught this long ago. Yup, that's why I added some more tests in this patch. > Are you going to look into this or do you want me to? Don't worry about it, I'll take a look.
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Victor Porof [:vp] from comment #3) > (In reply to Panos Astithas [:past] from comment #2) > > > I bet all of our unit tests for undefined values deal with arguments, not > > variable properties, otherwise we should have caught this long ago. Variables themselves (direct members of a scope) seem to be ok as well, so this happens only for properties.
Assignee | ||
Comment 5•11 years ago
|
||
Well.. this was pretty obvious.
Attachment #762884 -
Attachment is obsolete: true
Attachment #763546 -
Flags: review?(past)
Comment 6•11 years ago
|
||
Comment on attachment 763546 [details] [diff] [review] v1 Review of attachment 763546 [details] [diff] [review]: ----------------------------------------------------------------- I'm... sorry! ::: toolkit/devtools/server/tests/unit/test_framebindings-01.js @@ +56,5 @@ > + do_check_eq(aResponse.ownProperties.b.configurable, true); > + do_check_eq(aResponse.ownProperties.b.enumerable, true); > + do_check_eq(aResponse.ownProperties.b.writable, true); > + do_check_eq(aResponse.ownProperties.b.value.type, "undefined"); > + do_check_true(!("class" in aResponse.ownProperties.b.value)); do_check_false would be better here.
Attachment #763546 -
Flags: review?(past) → review+
Assignee | ||
Comment 8•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/6d680ab84fbd
Whiteboard: [fixed-in-fx-team]
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6d680ab84fbd
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•