Debugger always highlights the 1st line during debugging, if script src was deleted

UNCONFIRMED
Unassigned

Status

P5
minor
UNCONFIRMED
2 years ago
2 months ago

People

(Reporter: arni2033, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
>>>   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>
(Reporter)

Updated

2 years ago
No longer blocks: 1277113
(Reporter)

Updated

2 years ago
Component: Untriaged → Developer Tools: Canvas Debugger
(Reporter)

Updated

2 years ago
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger

Comment 1

2 years ago
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
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

2 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.