Closed
Bug 1326714
Opened 6 years ago
Closed 4 years ago
Debugger always highlights the 1st line during debugging, if script src was deleted
Categories
(DevTools :: Debugger, defect, P5)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arni2033, Unassigned)
Details
Attachments
(1 file)
116.32 KB,
image/png
|
Details |
>>> My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open url [1]
2. Open debugger
3. Prettify the script
4. Add breaking on "click" event
5. Click on page
6. Click "Step in" several times to debug the script
AR: Debugger always highlights the 1st line as current
ER: Debugger should highlight the actual line during debugging
[1]
data:text/html,<script src="data:text/javascript,
onclick=function(){F()};
function F(){console.log(G())};
function G(){return window.val};
window.val=3;
"></script>
<script>
document.querySelector('script').removeAttribute('src');
</script>
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Prettify is not always successful for this case. Please provide a working version if you think it may be a regression.
Has STR: --- → yes
Keywords: regressionwindow-wanted
Comment 2•5 years ago
|
||
Can't reproduce because I can't prettify this, which is slightly concerning but not quite surprising as this is quite a convoluted example. To help investigate the issue of the first line being highlighted if a script is deleted, it would be helpful to have an example that doesn't confuse the debugger and can actually be prettified.
Severity: normal → minor
Status: NEW → UNCONFIRMED
Ever confirmed: false
Priority: -- → P5
Updated•5 years ago
|
Product: Firefox → DevTools
Comment 3•4 years ago
|
||
THis was fixed.
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•