Closed Bug 971973 Opened 10 years ago Closed 5 years ago

Displaying browser "location" accessor causes: "TypeError: descriptor is undefined"

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bbenvie, Unassigned)

Details

STR:

1.) Open browser console
2.) Run in console: `Object.getPrototypeOf(gBrowser.contentDocument)`
3.) Click result to open Variables View sidebar

The view renders the properties as expected up until it hits the "location" property. In the console we get the following error (trimmed):

> TypeError: descriptor is undefined
> Scope.prototype.addItems@resource:///modules/devtools/VariablesView.jsm:1408
VariablesViewController.prototype._populateFromObject/<@resource:///modules/devtools/VariablesViewController.jsm:198
Actually it looks like the root cause is from the debugger server side (invalid descriptor).
Component: Developer Tools: Object Inspector → Developer Tools: Debugger
Full error message, with stack:

Handler function DebuggerClient.requester request callback threw an exception: TypeError: descriptor is undefined
Stack: Scope.prototype.addItems@resource://app/modules/devtools/VariablesView.jsm:1406
VariablesViewController.prototype._populateFromObject/<@resource://app/modules/devtools/VariablesViewController.jsm:198
DebuggerClient.requester/</<@resource://gre/modules/devtools/dbg-client.jsm:329
makeInfallible/<@resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:80
DebuggerClient.prototype.onPacket/<@resource://gre/modules/devtools/dbg-client.jsm:701
resolve@resource://gre/modules/commonjs/sdk/core/promise.js:118
then@resource://gre/modules/commonjs/sdk/core/promise.js:43
then@resource://gre/modules/commonjs/sdk/core/promise.js:153
DebuggerClient.prototype.onPacket@resource://gre/modules/devtools/dbg-client.jsm:705
LDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258
makeInfallible/<@resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:80
Line: 1406, column: 8
Priority: -- → P3
Summary: Error "descriptor is undefined" when displaying browser "location" accessor → Displaying browser "location" accessor causes: "TypeError: descriptor is undefined"
Product: Firefox → DevTools
Component: Debugger → Console

The bug is 5 years old, a lot have changed in the console.
We don't use the variable view anymore, and I don't reproduce the issue when expanding the result of Comment 0's STR.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.