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)
DevTools
Debugger
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.
Comment 1•12 years ago
|
||
nice catch, Nick.
Comment 2•12 years ago
|
||
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
Comment 3•12 years ago
|
||
(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.
Reporter | ||
Updated•11 years ago
|
Depends on: dbg-source
Updated•10 years ago
|
Summary: Debugger doesn't distinguish multiple inline html scripts on the same line → Debugger cannot distinguish multiple inline html scripts on the same line
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 4•6 years ago
|
||
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.
Description
•