Closed Bug 740546 Opened 12 years ago Closed 12 years ago

Components.utils should provide an API for enumerating all loaded JavaScript modules

Categories

(Core :: XPConnect, defect)

Other Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
mozilla15

People

(Reporter: jimb, Unassigned)

References

Details

(Whiteboard: [chrome-debug])

Attachments

(1 file)

The chrome debugger needs a way to enumerate all the globals present in the system, to be presented to the developer as possible debuggees. This API needs two parts:

- a function to return a list of all currently loaded JSM names and global objects; and
- a way for the debugger to request notification when new JSMs are loaded.

A draft implementation, with no tests, is attached. Will r? when we have tests.
Comment on attachment 610645 [details] [diff] [review]
Implement Component.utils.listModules, to enumerate all loaded JavaScript modules.

weird seeing moz code with 4 space indents. Takes me back!

This looks pretty decent.
Attachment #610645 - Flags: feedback+
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → mozilla14
Blocks: 750364
We've dropped this in favor of bug 743311, which provides a more comprehensive way to enumerate existing globals and be notified when new globals are created. A compatible mechanism for finding metadata about the globals we discover is the 'hostAnnotations' accessor suggested here:

https://github.com/jimblandy/DebuggerDocs/blob/onNewGlobal/DebuggerHostAnnotationsForFirefox
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
OS: All → Linux
Hardware: All → x86_64
Resolution: --- → WONTFIX
Target Milestone: mozilla14 → mozilla15
Version: Trunk → Other Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: