Closed
Bug 1211514
Opened 9 years ago
Closed 4 years ago
Debugger often doesn't show non-external sources
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(firefox44 affected, firefox48 affected)
RESOLVED
WONTFIX
People
(Reporter: arni2033, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [devtools-platform])
STR: (Win7_64, Nightly 44, 32bit, ID 20151004030211, new profile, safe mode)
1. Open the following "data:" url in a new tab or Ctrl+Shift+Click URL in the form above
> data:text/html,<body onclick="alert()">
2. Open Debugger on in tab from Step 1 by pressing Ctrl+Shift+S
3. Click Inspector tab
4. Click Debugger tab again
Result: Debugger displays no sources after Step 2. It displays them after Step 4.
Expectations: Debugger should always display all sources on the page
Please change the title if it's needed.
Comment 1•9 years ago
|
||
Note that if you click on the <body>, then the source does show up.
I suspect the onclick attribute is lazily compiled to a script and so SpiderMonkey (and hence the Debugger API) doesn't know about it until it is actually triggered.
Whiteboard: [dupeme] → [dupeme][devtools-platform]
Updated•9 years ago
|
Has STR: --- → yes
Summary: Debugger doesn't show sources on page <body onclick="alert()"> if devtools are opened by Ctrl+S → Debugger doesn't show sources on page <body onclick="alert()"> if devtools are opened by Ctrl+Shift+S
I encountered this in more cases. Here're 3 cases: A, B, C.
STR_2:
0. Open Debugger by Ctrl+Shift+S, close devtools.
1. Open:
A) data:text/html,<body onclick="alert()">
B) attachment 8724506 [details]
C) data:text/html,<script src="data:text/javascript,onclick=function(){window;}"></script>
2. Repeat 10 times: Open devtools (F12), wait until debugger finishes loading, close devtools (F12)
In each case debugger breaks after several times I close/reopen devtools.
Several is "1 or more". "Debugger breaks" means that it doesn't show any sources from some point.
Conclusion: debugger is unreliable.
status-firefox48:
--- → affected
Summary: Debugger doesn't show sources on page <body onclick="alert()"> if devtools are opened by Ctrl+Shift+S → Debugger often doesn't show non-external sources
Whiteboard: [dupeme][devtools-platform] → [devtools-platform]
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 3•6 years ago
|
||
This issue still exists!
Updated•6 years ago
|
Blocks: dbg-sources
Updated•5 years ago
|
Priority: -- → P3
Comment 4•4 years ago
|
||
The onclick
is lazy-compiled, so it won't be known to the debugger until you click the first time. I don't know that there's a way for us to address this. Also, we've started treating event handlers as "eval-like" so they have no URL, meaning that this issue is now only visible if you had a string event handler that happened to be using //# sourceURL=
which is super unlikely.
I think I'll call this working as expected.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•