Closed Bug 567219 Opened 14 years ago Closed 12 years ago

SpiderMonkey should provide an API for enumerating scripts

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jimb, Unassigned)

References

(Blocks 1 open bug)

Details

SpiderMonkey's jsdbgapi should provide a function to enumerates the URLs and debugging tags of all scripts associated with a given global object.

Debugger user interfaces need to be able to present the user with a list of the scripts in use by a particular page or origin, so that the user can browse their source code, set breakpoints, and so on. These lists should include only those scripts in use by the page or origin being debugged.
Assignee: general → nobody
Component: JavaScript Engine → JavaScript Debugging APIs
QA Contact: general → jsd
Enumerating the scripts associated with a given compartment would probably be just as good. The filename table should be per-compartment anyway.
Component: JavaScript Debugging/Profiling APIs → JavaScript Engine
We're not going to implement the C++-level API described in this bug. This feature is already implemented in the Debugger API: https://wiki.mozilla.org/Debugger
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.