Open Bug 1752108 Opened 2 years ago Updated 2 years ago

Blackbox lines in sourcemapped files

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: bomsy, Unassigned)

References

(Blocks 1 open bug)

Details

The support for blackboxing lines properly only works for generated files. For original files when we try to blackbox the line, the whole source is blackboxed, which was the default behaviour before the blackbox line feature was implemented.

We should improve this.

The issues comes from this code:
https://searchfox.org/mozilla-central/rev/88f285c5163f73abd209d4f73cfa476660351982/devtools/client/debugger/src/actions/sources/blackbox.js#34-43
Which uses getFileGeneratedRange and ignores ranges input argument. Instead it will blackblox the whole original source in the generated source.

You need to log in before you can comment on or make changes to this bug.