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)
Core
XPConnect
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.
Comment 1•13 years ago
|
||
(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.
Comment 2•13 years ago
|
||
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?
Reporter | ||
Comment 3•12 years ago
|
||
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.
Description
•