Closed Bug 775608 Opened 12 years ago Closed 6 years ago

Debugger cannot distinguish multiple inline html scripts on the same line

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fitzgen, Unassigned)

References

Details

If you have <script>console.log(1)</script><script>console.log(2)</script> there are two distinct scripts on the page, but both will be stored in the same place on ThreadActor's _scripts property, meaning that one will overwrite the other and the debugger will only know about the existence of one of the scripts.
nice catch, Nick.
This requires Debugger API and protocol support. I thought that I could use script.getLineOffsets as a workaround, but that won't do. Passing a startColumn along with the existing startLine property in the protocol should suffice, I think. Test page at: http://htmlpad.org/two-scripts-same-line/ Should this depend on bug 568142 or bug 757188?
Priority: -- → P3
(In reply to Panos Astithas [:past] from comment #2) > Should this depend on bug 568142 or bug 757188? Bug 757188, as that one depends on 568142.
Depends on: 757188
Depends on: dbg-source
Summary: Debugger doesn't distinguish multiple inline html scripts on the same line → Debugger cannot distinguish multiple inline html scripts on the same line
Product: Firefox → DevTools

This is now fixed after brian's refactoring in the server.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.