Wrong line highlighted in the source editor when paused on a debugger statement

NEW
Unassigned

Status

P3
normal
6 years ago
4 months ago

People

(Reporter: vporof, Unassigned)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
STR:

1. Go to http://jsbin.com/upejic/4/edit
2. Open debugger
3. Click me

Highlighted line is "<!--[if gte IE 8 ]><body class="source ie"><![endif]-->".

Granted, this is quite an edge and tricky case since the code is generated (line 358 is where things start to look familiar), but it's a bit confusing pausing on line 13 instead.
Assignee: nobody → past
Priority: -- → P2
The problem stems from the fact that in this case the script that contains the debugger statement is inside an iframe, which SpiderMonkey happily reports with the same URL as the outer window. Debugger.Source can't come soon enough...
Assignee: past → nobody
Depends on: 637572
Priority: P2 → P3

Updated

4 years ago
Depends on: 905700

Updated

4 years ago
Depends on: 784112

Updated

4 years ago
Duplicate of this bug: 1101271

Updated

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