Open
Bug 784112
Opened 12 years ago
Updated 2 years ago
Debugger cannot distinguish multiple instances of the same file in different iframes
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: rcampbell, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
533 bytes,
application/zip
|
Details |
The scripts dropdown in the debugger will display only one instance of a source file if it's included multiple times via different iframes. There's no way to debug a specific script / iframe context.
Updated•11 years ago
|
Depends on: dbg-source
Updated•10 years ago
|
Summary: Debugger does not have a means to distinguish multiple instances of the same file in different iframes → Debugger cannot distinguish multiple instances of the same file in different iframes
Comment 4•9 years ago
|
||
I've attached a simple test case to make it easier to reproduce the issue.
In that test case, script.js should be listed twice within the Sources panel, once for main.html and once for iframe.html.
Sebastian
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 5•6 years ago
|
||
Adding this to dbg-sources as I'm not sure we cover all of these cases.
Blocks: dbg-sources
Comment 6•6 years ago
|
||
Yeah we definitely don't handle this right now. Since the thread actor doesn't have a concept of nested frames, the list of sources is just per-thread, so the client will merge multiple source actors for a file into one source in the tree.
I think this all goes back to really deciding how we want to distinguish the overall tree of frames & assets. In a perfect world each source would be associated with a frame, and the debugger's left-hand tree would be a tree of frames, not just a list of sources-per-thread.
We may be able to implement this with the introductionScript
and element
fields on the Debugger.Source objects, but I don't know 100% for sure.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•