[jsdbg2] Debugger.Object should provide a way to get the global, and to unwrap

RESOLVED FIXED in Firefox 19

Status

defect
RESOLVED FIXED
7 years ago
Last year

People

(Reporter: jimb, Assigned: jimb)

Tracking

Trunk
Firefox 19
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

Assignee

Description

7 years ago
There should be a way to find the global in whose scope an object was allocated; and to unwrap Debugger.Object instances referring to wrappers, when security permits. Together these operations will let debuggers make better sense of their referent's wrapper and compartment structure.

Draft spec:
https://github.com/jimblandy/DebuggerDocs/compare/wrapper-inspection
Assignee

Comment 3

7 years ago
Try: https://tbpl.mozilla.org/?tree=Try&rev=83d6ae92cfbc

Will request reviews when this looks good.
Assignee

Updated

7 years ago
Blocks: 796073
Assignee

Updated

7 years ago
Blocks: 743311
Assignee

Updated

7 years ago
Attachment #669631 - Flags: review?(jorendorff)
Assignee

Updated

7 years ago
Attachment #669632 - Flags: review?(jorendorff)
Comment on attachment 669631 [details] [diff] [review]
Implement Debugger.Object.prototype.global.

Stealing at jimb's request.

Makes sense.  Good tests.
Attachment #669631 - Flags: review?(jorendorff) → review+
Comment on attachment 669632 [details] [diff] [review]
Implement Debugger.Object.prototype.unwrap.

Ditto.

On irc I asked about, generally, whether it is an error to have a Debugger.Object to an object in a non-debuggee global.  The answer was "we tolerate that".  I guess if we ever decided not to do that, makeDebuggeeValue would be pinch-point to change.
Attachment #669632 - Flags: review?(jorendorff) → review+

Updated

Last year
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.