Closed Bug 740547 Opened 13 years ago Closed 12 years ago

Components.utils should provide an API for observing when modules are loaded

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 743311

People

(Reporter: jimb, Unassigned)

References

Details

(Whiteboard: [chrome-debug])

As mentioned in bug 740546, the chrome debugger needs a way to be notified when new JavaScript modules get loaded. Perhaps we could apply nsIObserverService here.
(In reply to Jim Blandy :jimb from comment #0) > As mentioned in bug 740546, the chrome debugger needs a way to be notified > when new JavaScript modules get loaded. Perhaps we could apply > nsIObserverService here. Seems like a good place to start.
Blocks: 750364
If the observer service is used, won't the debugger miss a few execution frames of the newly-loaded module since observations events fire on a later tick?
We've implemented Debugger.prototype.onNewGlobalObject, which fires synchronously, like other debugger hooks.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.