Closed
Bug 911721
Opened 11 years ago
Closed 10 years ago
Get type & originator for Debugger.Script object
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 935203
People
(Reporter: Honza, Unassigned)
References
Details
(Whiteboard: [firebug-p1])
It would be great for various developer tools (e.g. Firebug) to have the following new information available for Debugger.Script objects. * type: type of the script (e.g. static, eval, event, new function, etc.). * originator: additional info about what initiated the script evaluation (e.g. reference to the <script> element, nsIHttpChannel, etc.) Honza
Reporter | ||
Updated•11 years ago
|
Whiteboard: [firebug-p1]
Reporter | ||
Comment 1•11 years ago
|
||
Any chance we could get this into Firefox 26? Honza
Comment 2•11 years ago
|
||
The Debugger.Source draft spec has introductionKind, which answers some of these questions: <dt>introductionKind <dd>A string indicating what kind of introduction call introduced this <code>Debugger.Source</code>'s code into the system. This is <code>undefined</code> if <code>introductionScript</code> is undefined; otherwise, it is one of the following strings: <ul> <li><code>"eval"</code> <li><code>"Function"</code> <li><code>"Worker"</code> <li><code>"importScripts"</code> <li><code>"handler"</code> (for DOM elements' event handler IDL attributes) </ul> However, your description of "originator" includes what seem to me to be two different categories of things: - Things that cause a script to be parsed, like a <script> tag. This, Debugger.Source is intended to provide. - Things that cause a script to be run, like nsIHttpChannel. This is separate information from the above; for example, code introduced by a <script> tag might be a handler for an nsIHttpChannel. This seems like it should be metadata on the oldest call frame: "Who made this call?"
Comment 3•11 years ago
|
||
Are both of those kinds of information - introduction and caller - needed before JSD can be removed? We don't even have a draft spec for the latter.
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Jim Blandy :jimb from comment #3) > Are both of those kinds of information - introduction and caller - needed > before JSD can be removed? We don't even have a draft spec for the latter. Only "introduction" is needed (and enough to remove JSD). Honza
Updated•10 years ago
|
Comment 5•10 years ago
|
||
This bug doesn't have anything beyond what's already done in introductionType, so I'm closing it as a duplicate of bug 935203. There is still discussion about whether the solution there is adequate, but that discussion should take place in that bug, not this one, so closing this as a dup shouldn't inhibit that conversation.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•