Closed Bug 1360252 Opened 7 years ago Closed 6 years ago

expose sourceMapURL in ConsoleStackTrace

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tromey, Unassigned)

References

(Blocks 1 open bug)

Details

Currently if a console message comes from a source-mapped url, and the corresponding
script is GC'd, then there's not a good way to get the sourceMapURL.
One idea for fixing this would be to store the sourceMapURL in the ConsoleEvent
and the ConsoleStackEntry objects.
If we went this route we would also want to expose sourceURL.

I tend to think this won't work, though, because these URLs aren't always known
at the point at which the error is logged -- for example if CSS parsing logs an
error before it parses to the end of the sheet.
I no longer think this is a good approach, because the sourceMappingURL can be quite large.
I'm writing up another approach in the source map planning document.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.